From 71197573452d2dc3ece6644fc2410675a8b552c4 Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Fri, 24 Jan 2025 20:58:59 +0000 Subject: [PATCH] =?UTF-8?q?[GitHubEnterpriseCloud]=20Update=20to=201.1.4-6?= =?UTF-8?q?e57e5a946cc639968a53e5f4602f4f7=20from=201.1.4-43923ad35cb20bfc?= =?UTF-8?q?459c3dc3c0c3487f=20Detected=20Schema=20changes:=202025-01-24=20?= =?UTF-8?q?20:27:18=20ERROR=20unable=20to=20open=20the=20rolodex=20file,?= =?UTF-8?q?=20check=20specification=20references=20and=20base=20path=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=E2=94=9C=20file:=20/=5F=5Fw/github-root/github-root/server-sta?= =?UTF-8?q?tistics-actions.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw?= =?UTF-8?q?/github-root/github-root/server-statistics-actions.yaml:=20no?= =?UTF-8?q?=20such=20file=20or=20directory=202025-01-24=2020:27:18=20ERROR?= =?UTF-8?q?=20unable=20to=20open=20the=20rolodex=20file,=20check=20specifi?= =?UTF-8?q?cation=20references=20and=20base=20path=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20file:?= =?UTF-8?q?=20/=5F=5Fw/github-root/github-root/server-statistics-packages.?= =?UTF-8?q?yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw/github-root/gi?= =?UTF-8?q?thub-root/server-statistics-packages.yaml:=20no=20such=20file?= =?UTF-8?q?=20or=20directory=202025-01-24=2020:27:18=20ERROR=20unable=20to?= =?UTF-8?q?=20open=20the=20rolodex=20file,=20check=20specification=20refer?= =?UTF-8?q?ences=20and=20base=20path=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20file:=20/=5F=5Fw/g?= =?UTF-8?q?ithub-root/github-root/server-statistics-advisory-db.yaml=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=E2=94=94=20error:=20open=20/=5F=5Fw/github-root/github-root/se?= =?UTF-8?q?rver-statistics-advisory-db.yaml:=20no=20such=20file=20or=20dir?= =?UTF-8?q?ectory=202025-01-24=2020:27:20=20ERROR=20unable=20to=20open=20t?= =?UTF-8?q?he=20rolodex=20file,=20check=20specification=20references=20and?= =?UTF-8?q?=20base=20path=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=E2=94=9C=20file:=20/=5F=5Fw/github-root/g?= =?UTF-8?q?ithub-root/server-statistics-actions.yaml=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=94=20err?= =?UTF-8?q?or:=20open=20/=5F=5Fw/github-root/github-root/server-statistics?= =?UTF-8?q?-actions.yaml:=20no=20such=20file=20or=20directory=202025-01-24?= =?UTF-8?q?=2020:27:20=20ERROR=20unable=20to=20open=20the=20rolodex=20file?= =?UTF-8?q?,=20check=20specification=20references=20and=20base=20path=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=E2=94=9C=20error:=20open=20/=5F=5Fw/github-root/github-root?= =?UTF-8?q?/server-statistics-packages.yaml:=20no=20such=20file=20or=20dir?= =?UTF-8?q?ectory=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=E2=94=94=20file:=20/=5F=5Fw/github-root/github-roo?= =?UTF-8?q?t/server-statistics-packages.yaml=202025-01-24=2020:27:20=20ERR?= =?UTF-8?q?OR=20unable=20to=20open=20the=20rolodex=20file,=20check=20speci?= =?UTF-8?q?fication=20references=20and=20base=20path=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20fil?= =?UTF-8?q?e:=20/=5F=5Fw/github-root/github-root/server-statistics-advisor?= =?UTF-8?q?y-db.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw/github-root?= =?UTF-8?q?/github-root/server-statistics-advisory-db.yaml:=20no=20such=20?= =?UTF-8?q?file=20or=20directory=20ERROR:=20component=20`server-statistics?= =?UTF-8?q?-actions.yaml`=20does=20not=20exist=20in=20the=20specification?= =?UTF-8?q?=20ERROR:=20component=20`server-statistics-packages.yaml`=20doe?= =?UTF-8?q?s=20not=20exist=20in=20the=20specification=20ERROR:=20component?= =?UTF-8?q?=20`server-statistics-advisory-db.yaml`=20does=20not=20exist=20?= =?UTF-8?q?in=20the=20specification=20ERROR:=20cannot=20resolve=20referenc?= =?UTF-8?q?e=20`server-statistics-actions.yaml`,=20it's=20missing:=20=20[2?= =?UTF-8?q?14891:11]=20ERROR:=20cannot=20resolve=20reference=20`server-sta?= =?UTF-8?q?tistics-packages.yaml`,=20it's=20missing:=20=20[214893:11]=20ER?= =?UTF-8?q?ROR:=20cannot=20resolve=20reference=20`server-statistics-adviso?= =?UTF-8?q?ry-db.yaml`,=20it's=20missing:=20=20[214895:11]=20ERROR:=20comp?= =?UTF-8?q?onent=20`server-statistics-actions.yaml`=20does=20not=20exist?= =?UTF-8?q?=20in=20the=20specification=20ERROR:=20component=20`server-stat?= =?UTF-8?q?istics-packages.yaml`=20does=20not=20exist=20in=20the=20specifi?= =?UTF-8?q?cation=20ERROR:=20component=20`server-statistics-advisory-db.ya?= =?UTF-8?q?ml`=20does=20not=20exist=20in=20the=20specification=20ERROR:=20?= =?UTF-8?q?cannot=20resolve=20reference=20`server-statistics-actions.yaml`?= =?UTF-8?q?,=20it's=20missing:=20=20[214880:11]=20ERROR:=20cannot=20resolv?= =?UTF-8?q?e=20reference=20`server-statistics-packages.yaml`,=20it's=20mis?= =?UTF-8?q?sing:=20=20[214882:11]=20ERROR:=20cannot=20resolve=20reference?= =?UTF-8?q?=20`server-statistics-advisory-db.yaml`,=20it's=20missing:=20?= =?UTF-8?q?=20[214884:11]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clients/GitHubEnterpriseCloud/README.md | 12 +- .../etc/openapi-client-generator.state | 114 +++++++++--------- .../Hydrator/Operation/Advisories/GhsaId.php | 62 +++++----- .../Repo/Dependabot/Alerts/AlertNumber.php | 97 +++++++++++++++ .../Hydrator/WebHook/DependabotAlert.php | 97 +++++++++++++++ .../src/Internal/Hydrators.php | 4 +- .../Dependabot/ListAlertsForEnterprise.php | 2 +- .../Operator/Dependabot/ListAlertsForOrg.php | 2 +- .../Operator/Dependabot/ListAlertsForRepo.php | 2 +- .../Dependabot/ListAlertsForRepoListing.php | 2 +- ...reateNetworkConfigurationForEnterprise.php | 1 + .../CreateNetworkConfigurationForOrg.php | 1 + ...leteNetworkConfigurationFromEnterprise.php | 1 + .../DeleteNetworkConfigurationFromOrg.php | 1 + .../GetNetworkConfigurationForEnterprise.php | 1 + .../GetNetworkConfigurationForOrg.php | 1 + .../GetNetworkSettingsForEnterprise.php | 1 + .../GetNetworkSettingsForOrg.php | 1 + ...ListNetworkConfigurationsForEnterprise.php | 1 + .../ListNetworkConfigurationsForOrg.php | 1 + ...pdateNetworkConfigurationForEnterprise.php | 1 + .../UpdateNetworkConfigurationForOrg.php | 1 + .../src/Internal/Router/Delete/Five.php | 1 - .../Internal/Router/Delete/HostedCompute.php | 2 + .../src/Internal/Router/Delete/Six.php | 1 - .../src/Internal/Router/Get/Dependabot.php | 6 +- .../src/Internal/Router/Get/Five.php | 2 +- .../src/Internal/Router/Get/Four.php | 2 +- .../src/Internal/Router/Get/HostedCompute.php | 6 + .../src/Internal/Router/Get/Six.php | 2 +- .../src/Internal/Router/List/Dependabot.php | 2 +- .../src/Internal/Router/List/Six.php | 2 +- .../src/Internal/Router/Patch/Five.php | 2 +- .../Internal/Router/Patch/HostedCompute.php | 2 + .../src/Internal/Router/Patch/Six.php | 1 - .../src/Internal/Router/Post/Five.php | 1 - .../src/Internal/Router/Post/Four.php | 1 - .../Internal/Router/Post/HostedCompute.php | 2 + .../src/Operation/Dependabot.php | 8 +- .../src/Operation/HostedCompute.php | 12 ++ .../src/PHPStan/ClientCallReturnTypes.php | 32 ++--- .../src/Schema/DependabotAlert.php | 24 ++++ .../DependabotAlertSecurityAdvisory.php | 27 ++++- .../Schema/DependabotAlertWithRepository.php | 24 ++++ .../src/Schema/GlobalAdvisory.php | 39 +++--- .../Epss.php => SecurityAdvisoryEpss.php} | 14 ++- .../WebhookDependabotAlertAutoDismissed.php | 24 ++++ .../WebhookDependabotAlertAutoReopened.php | 24 ++++ .../Schema/WebhookDependabotAlertCreated.php | 24 ++++ .../WebhookDependabotAlertDismissed.php | 24 ++++ .../Schema/WebhookDependabotAlertFixed.php | 24 ++++ .../WebhookDependabotAlertReintroduced.php | 24 ++++ .../Schema/WebhookDependabotAlertReopened.php | 24 ++++ .../tests/Types/ClientCallReturnTypes.php | 32 ++--- .../GitHubEnterpriseCloud/current.spec.yaml | 62 ++++++---- 55 files changed, 691 insertions(+), 192 deletions(-) rename clients/GitHubEnterpriseCloud/src/Schema/{GlobalAdvisory/Epss.php => SecurityAdvisoryEpss.php} (50%) diff --git a/clients/GitHubEnterpriseCloud/README.md b/clients/GitHubEnterpriseCloud/README.md index 91e8ee4be20..a6619baffd0 100644 --- a/clients/GitHubEnterpriseCloud/README.md +++ b/clients/GitHubEnterpriseCloud/README.md @@ -11911,7 +11911,7 @@ $client->operations()->hostedCompute()->listNetworkConfigurationsForOrg( ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#list-hosted-compute-network-configurations-for-an-organization). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization). ### hosted-compute/create-network-configuration-for-org @@ -11931,7 +11931,7 @@ $client->operations()->hostedCompute()->createNetworkConfigurationForOrg( ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization). ### hosted-compute/get-network-configuration-for-org @@ -11953,7 +11953,7 @@ $client->operations()->hostedCompute()->getNetworkConfigurationForOrg( or ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization). ### hosted-compute/delete-network-configuration-from-org @@ -11975,7 +11975,7 @@ $client->operations()->hostedCompute()->deleteNetworkConfigurationFromOrg( ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization). ### hosted-compute/update-network-configuration-for-org @@ -11997,7 +11997,7 @@ $client->operations()->hostedCompute()->updateNetworkConfigurationForOrg( ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization). ### hosted-compute/get-network-settings-for-org @@ -12019,7 +12019,7 @@ $client->operations()->hostedCompute()->getNetworkSettingsForOrg( org: 'g ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization). ### teams/list-idp-groups-for-org diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index b842f6fe1b9..cf802c9d28f 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "43923ad35cb20bfc459c3dc3c0c3487f", + "specHash": "6e57e5a946cc639968a53e5f4602f4f7", "generatedFiles": { "files": [ { @@ -328,7 +328,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependabotAlertSecurityAdvisory.php", - "hash": "683b996c68bfd7befabfb00039ba5755" + "hash": "711d73c0a66d26cd6654f7856fa524fd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AlertAutoDismissedAt.php", @@ -336,7 +336,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependabotAlertWithRepository.php", - "hash": "14b463d606fc1c000a6b0d24a624addc" + "hash": "75ba51785c304f6597baa599353c02a9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GetLicenseSyncStatus.php", @@ -1112,7 +1112,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependabotAlert.php", - "hash": "f1465bdfdcbd3384860bd0c7bfd17f96" + "hash": "8c8da252bd4addab6fad4e3bdbfe00c4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependabotSecret.php", @@ -1776,31 +1776,31 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertAutoDismissed.php", - "hash": "e5c4a4ea46ea03aed8285c27b7c4cbda" + "hash": "b8a1c59729ed0dbb67edccc33e35da77" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertAutoReopened.php", - "hash": "55fc15fadf6723bfed26c8a3b5202083" + "hash": "a08820d4fa1477518a135ebb97763d01" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertCreated.php", - "hash": "aaab7d341457e5ffb10387c18cd2e62a" + "hash": "f321458ef7001f8b1fb94553336d0819" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertDismissed.php", - "hash": "4dd4eb80d723c63975ca4308d30653f5" + "hash": "03c833e4fd50dc18d41178cec9bfd2d2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertFixed.php", - "hash": "391e2ed0ae0eeb1d8c8e3d6c5fcb8be6" + "hash": "b2547107a536c0b2c7eb1dc83baa9cfd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertReintroduced.php", - "hash": "a95d1a713d602532afa25739c928e118" + "hash": "5fce21d251634089a808ea7eff2c17a0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertReopened.php", - "hash": "3a7629ff984a65db35a34dfeb438a306" + "hash": "f6bea97ebbc6e7b18629458cb5b5c3db" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeployKeyCreated.php", @@ -5884,7 +5884,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Actions.php", - "hash": "db070818c617c386682e4af87cc37eb3" + "hash": "b6b8b8c98f62a1fe78108669198e0898" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/AnnouncementBanners.php", @@ -5900,7 +5900,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Dependabot.php", - "hash": "3b39461cb95a0e095b74738f8204ae75" + "hash": "14698f5b68d8204620d7f582526429c9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -12100,7 +12100,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory.php", - "hash": "c398cd9e198f620cb7241fae1abecb46" + "hash": "ccd2efb8c39b2ffc7587d3de24f61309" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertResolutionWebhook.php", @@ -13316,7 +13316,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForEnterprise.php", - "hash": "ca81ed1d6c9f992548b3137dfb2906c5" + "hash": "d80aea5e9dfab4293d05459738b0ccce" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterpriseTest.php", @@ -15256,7 +15256,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForOrg.php", - "hash": "4eb1909d264b845a2c7e2e6f3a876b42" + "hash": "2bc5085e9b2d3e70196ebb6e45feab12" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrgTest.php", @@ -19764,7 +19764,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepo.php", - "hash": "98c4b7d42d3b7103c84d389904ceb01a" + "hash": "834356fc653e95e01d051ddf53f5be11" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoTest.php", @@ -19776,7 +19776,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepoListing.php", - "hash": "18ec62fa69cec245335271428f4461dc" + "hash": "146cac33ed6934c26e26193e7281cd54" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoListingTest.php", @@ -26044,7 +26044,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php", - "hash": "952c07368da48af36e75e48c4b2a16f3" + "hash": "17f9a7e6ef1ca9f8d4c4a14325ed5f0d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Actions.php", @@ -26336,7 +26336,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Dependabot.php", - "hash": "85445f513eafeeac3cbf5cbbd5c30706" + "hash": "30c8ea67e928eaf33db71d69fda41cb2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Reactions.php", @@ -26536,15 +26536,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "626820827e282980a19b32143ec5008f" + "hash": "d6567804fd9446c5594a3a7bb2be0cfb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "d35b88bce65e696c2e91806bf1fa13e2" + "hash": "5418ee2799658e41ccf12f6920f0da08" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "6f4674a742f625e201555e238b84f6a5" + "hash": "37e6aa6f38b79bbc91caa2834520f676" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -26564,7 +26564,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Four.php", - "hash": "8f4520b23b0b10d5c6d05b0e9086e280" + "hash": "e9b2ce7a251c2d88723f8d54907429a1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php", @@ -26572,7 +26572,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Five.php", - "hash": "900a3e05764ba833ea60180a07707ba9" + "hash": "0131cc6c2ba1ed4382673d9157b94ca0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Seven.php", @@ -26604,7 +26604,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Six.php", - "hash": "c2cf5d1d1dd5d92bbb9fc12436f84950" + "hash": "b8501f83151e8eb38ff578e741899ccf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Three.php", @@ -26612,7 +26612,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Five.php", - "hash": "5ea52cbf13ca97eba4bd746491e7a78f" + "hash": "0dcf2b1d88d2c41a3a7a875810131abb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Seven.php", @@ -26648,7 +26648,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "e5e20eddc085a85ecb319ddaa548bbfd" + "hash": "17bd466826aff407b18576146bdb0aa7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -26672,7 +26672,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Five.php", - "hash": "2a2c6e99d17ef62983e81aefd120ae14" + "hash": "ea683aac9ccdf4b965125256d50b13ff" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Seven.php", @@ -26680,7 +26680,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php", - "hash": "7a2b3bbbaa10793d890999408d0ebcdc" + "hash": "b31b9a52d5e456d0d9a7e36458290b3d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Eight.php", @@ -26760,7 +26760,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Advisories\/GhsaId.php", - "hash": "ccf844ed8ff9477f5ea60975bddf078c" + "hash": "4a239f2c23eea41c6cd30e7b5313970d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App.php", @@ -27988,7 +27988,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Dependabot\/Alerts\/AlertNumber.php", - "hash": "23844a8bb656d850b3b6aa4fb9bcae10" + "hash": "97af5dd2dbcdb33d67258d99a60ce1cb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Dependabot\/Secrets.php", @@ -28920,7 +28920,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "ef925a3f6ac804551ba7a44579d84be1" + "hash": "6b8af841fcf31f1b16263cd10bcf3521" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php", @@ -29716,11 +29716,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "8f750bfedab61a57d7a7444b411929f0" + "hash": "67f2ab0ebdf064d15434b406777f1a73" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "fea0f4536f11dcb7defa212770f5ea25" + "hash": "a13d017e4eaf291980a72549ed6eaa6b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -30052,7 +30052,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DependabotAlert.php", - "hash": "6b65d6b3ac12fce0e6b1f2f4c790ff17" + "hash": "a20d8f34df0884f2940f9c2c1aef5610" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeployKey.php", @@ -32518,10 +32518,6 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueRemoved.php", "hash": "4e04ffa9a918f3e29250377e7ae8c895" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Epss.php", - "hash": "bdd792293705f29409811d43c5e49851" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ArtifactAttestations.php", "hash": "f3c4126c5b740e307c819c466794f21e" @@ -34664,7 +34660,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/ListNetworkConfigurationsForEnterprise.php", - "hash": "5ee06633326ebd19c419a3a1766ca64c" + "hash": "6db1ff42a5ceaf3d5bb9c6fa0672dfa2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/ListNetworkConfigurationsForEnterpriseTest.php", @@ -34676,7 +34672,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/CreateNetworkConfigurationForEnterprise.php", - "hash": "7c634303e15a5141d2a2aee6e1d7c373" + "hash": "dfdf3a3f19cadb72f2f535dd64c10723" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/CreateNetworkConfigurationForEnterpriseTest.php", @@ -34688,7 +34684,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/GetNetworkConfigurationForEnterprise.php", - "hash": "ff51933e1f5b22f33352d1259ba59774" + "hash": "8f5a34ce4d06815cc973283638863345" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/GetNetworkConfigurationForEnterpriseTest.php", @@ -34700,7 +34696,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/DeleteNetworkConfigurationFromEnterprise.php", - "hash": "4b76471da7fe87a93f8450bdbb7922b8" + "hash": "d9b4792313fefa5a05461ad1c336c425" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/HostedCompute\/UpdateNetworkConfigurationForEnterprise.php", @@ -34708,7 +34704,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/UpdateNetworkConfigurationForEnterprise.php", - "hash": "e97b69c5e1a6c5781093693794bbca43" + "hash": "ac50f257d4e1cc658d73ee3199f10837" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/UpdateNetworkConfigurationForEnterpriseTest.php", @@ -34720,7 +34716,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/GetNetworkSettingsForEnterprise.php", - "hash": "a62c895176a0a85d70dc400804fb5955" + "hash": "87bada5f4e8c74f76b6bd389db30b4c4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/GetNetworkSettingsForEnterpriseTest.php", @@ -34732,7 +34728,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/ListNetworkConfigurationsForOrg.php", - "hash": "8daa3c54222a8749026fb6df91ec5f67" + "hash": "dcb96b71b0bab95be6e77307c1e9ce19" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/ListNetworkConfigurationsForOrgTest.php", @@ -34744,7 +34740,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/CreateNetworkConfigurationForOrg.php", - "hash": "23f18ad22f3c9648989e97b775708e52" + "hash": "3f95eb748f73e836c117ae74765236b9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/CreateNetworkConfigurationForOrgTest.php", @@ -34756,7 +34752,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/GetNetworkConfigurationForOrg.php", - "hash": "9dd909228bb5f4ebe9f34ddaad28d9ac" + "hash": "6f8c420a1d31181e982ac5b2c47307ff" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/GetNetworkConfigurationForOrgTest.php", @@ -34768,7 +34764,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/DeleteNetworkConfigurationFromOrg.php", - "hash": "8f2d54909865d5fb44f64f133fa73e6f" + "hash": "e66fbb1385806dd7b7e3798d7b3f1742" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/HostedCompute\/UpdateNetworkConfigurationForOrg.php", @@ -34776,7 +34772,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/UpdateNetworkConfigurationForOrg.php", - "hash": "38d9012f35d97e62cb38e7dd8d06788f" + "hash": "c5a3b3ff3ac5b598b8f3ef9899462a4c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/UpdateNetworkConfigurationForOrgTest.php", @@ -34788,7 +34784,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/GetNetworkSettingsForOrg.php", - "hash": "3640585d294d64ed58700700112cd09d" + "hash": "7048c74a0e54238369dde665ad49c73a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/GetNetworkSettingsForOrgTest.php", @@ -34836,23 +34832,23 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/HostedCompute.php", - "hash": "1431a8c9144ddd188a0644cc2cdc1bf6" + "hash": "4bd161310597018b8d8764d50983e5fc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/HostedCompute.php", - "hash": "62e8a3223405a8225253f37e42050fe0" + "hash": "b57a069c3a7a03f9d31704a4347153e6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/HostedCompute.php", - "hash": "75e4b74198d7bf50a5ad59b269892ddf" + "hash": "8eb0fb370395386f86ff3120594fd1a2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/HostedCompute.php", - "hash": "0a1fcde81cb7bcd958ff602ce58adab4" + "hash": "6c9d10f0b0f4a2ac9b54eb6c04fd83c6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/HostedCompute.php", - "hash": "bccce9cc1c6bf18414875c4414cf72a8" + "hash": "de4ca562cdab21963f9b47b887e1826d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/NetworkConfigurations.php", @@ -34877,6 +34873,10 @@ { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Settings\/NetworkSettings\/NetworkSettingsId.php", "hash": "dab2c8cc81a5dbae953baa01a1ad62cc" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecurityAdvisoryEpss.php", + "hash": "0f756903ae10959959de4da76e68feba" } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Advisories/GhsaId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Advisories/GhsaId.php index 058fe861ff3..a5ade482358 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Advisories/GhsaId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Advisories/GhsaId.php @@ -10,7 +10,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree; use ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory; use ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Cvss; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Epss; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -51,7 +51,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Epss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -300,17 +300,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_cvssSeverities: - $value = $payload['cwes'] ?? null; - - if ($value === null) { - $properties['cwes'] = null; - goto after_cwes; - } - - $properties['cwes'] = $value; - - after_cwes: - $value = $payload['epss'] ?? null; if ($value === null) { @@ -321,7 +310,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'epss'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($value); } finally { array_pop($this->hydrationStack); } @@ -331,6 +320,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_epss: + $value = $payload['cwes'] ?? null; + + if ($value === null) { + $properties['cwes'] = null; + goto after_cwes; + } + + $properties['cwes'] = $value; + + after_cwes: + $value = $payload['credits'] ?? null; if ($value === null) { @@ -538,7 +538,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss(array $payload): Epss + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss(array $payload): SecurityAdvisoryEpss { $properties = []; $missingFields = []; @@ -565,17 +565,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_percentile: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Epss::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SecurityAdvisoryEpss::class, $missingFields, stack: $this->hydrationStack); } try { - return new Epss(...$properties); + return new SecurityAdvisoryEpss(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack); } } @@ -678,7 +678,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Epss' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -890,6 +890,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $cvssSeverities = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($cvssSeverities); after_cvssSeverities: $result['cvss_severities'] = $cvssSeverities; + $epss = $object->epss; + + if ($epss === null) { + goto after_epss; + } + + $epss = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($epss); + after_epss: $result['epss'] = $epss; + $cwes = $object->cwes; if ($cwes === null) { @@ -905,15 +914,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $cwes = $cwesSerializer0->serialize($cwes, $this); after_cwes: $result['cwes'] = $cwes; - $epss = $object->epss; - - if ($epss === null) { - goto after_epss; - } - - $epss = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss($epss); - after_epss: $result['epss'] = $epss; - $credits = $object->credits; if ($credits === null) { @@ -1030,9 +1030,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss(mixed $object): mixed + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss(mixed $object): mixed { - assert($object instanceof Epss); + assert($object instanceof SecurityAdvisoryEpss); $result = []; $percentage = $object->percentage; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Dependabot/Alerts/AlertNumber.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Dependabot/Alerts/AlertNumber.php index feb1fcf701a..508a7de3dad 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Dependabot/Alerts/AlertNumber.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Dependabot/Alerts/AlertNumber.php @@ -16,6 +16,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlertSecurityVulnerability; use ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationErrorSimple; use EventSauce\ObjectHydrator\IterableList; @@ -61,6 +62,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlertSecurityVulnerability' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependabotAlertSecurityVulnerability($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependabotAlertSecurityVulnerability⚡️FirstPatchedVersion($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), @@ -504,6 +506,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_cvssSeverities: + $value = $payload['epss'] ?? null; + + if ($value === null) { + $properties['epss'] = null; + goto after_epss; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'epss'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['epss'] = $value; + + after_epss: + $value = $payload['cwes'] ?? null; if ($value === null) { @@ -766,6 +788,47 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss(array $payload): SecurityAdvisoryEpss + { + $properties = []; + $missingFields = []; + try { + $value = $payload['percentage'] ?? null; + + if ($value === null) { + $properties['percentage'] = null; + goto after_percentage; + } + + $properties['percentage'] = $value; + + after_percentage: + + $value = $payload['percentile'] ?? null; + + if ($value === null) { + $properties['percentile'] = null; + goto after_percentile; + } + + $properties['percentile'] = $value; + + after_percentile: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecurityAdvisoryEpss::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecurityAdvisoryEpss(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependabotAlertSecurityVulnerability(array $payload): DependabotAlertSecurityVulnerability { $properties = []; @@ -1377,6 +1440,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlertSecurityVulnerability' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependabotAlertSecurityVulnerability($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependabotAlertSecurityVulnerability⚡️FirstPatchedVersion($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), @@ -1627,6 +1691,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $cvssSeverities = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($cvssSeverities); after_cvssSeverities: $result['cvss_severities'] = $cvssSeverities; + $epss = $object->epss; + + if ($epss === null) { + goto after_epss; + } + + $epss = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($epss); + after_epss: $result['epss'] = $epss; + $cwes = $object->cwes; static $cwesSerializer0; @@ -1767,6 +1840,30 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss(mixed $object): mixed + { + assert($object instanceof SecurityAdvisoryEpss); + $result = []; + + $percentage = $object->percentage; + + if ($percentage === null) { + goto after_percentage; + } + + after_percentage: $result['percentage'] = $percentage; + + $percentile = $object->percentile; + + if ($percentile === null) { + goto after_percentile; + } + + after_percentile: $result['percentile'] = $percentile; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependabotAlertSecurityVulnerability(mixed $object): mixed { assert($object instanceof DependabotAlertSecurityVulnerability); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DependabotAlert.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DependabotAlert.php index de725d60f39..1cc6149cb12 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DependabotAlert.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DependabotAlert.php @@ -21,6 +21,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\Permissions; use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDependabotAlertAutoDismissed; @@ -74,6 +75,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlertSecurityVulnerability' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependabotAlertSecurityVulnerability($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependabotAlertSecurityVulnerability⚡️FirstPatchedVersion($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), @@ -680,6 +682,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_cvssSeverities: + $value = $payload['epss'] ?? null; + + if ($value === null) { + $properties['epss'] = null; + goto after_epss; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'epss'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['epss'] = $value; + + after_epss: + $value = $payload['cwes'] ?? null; if ($value === null) { @@ -942,6 +964,47 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss(array $payload): SecurityAdvisoryEpss + { + $properties = []; + $missingFields = []; + try { + $value = $payload['percentage'] ?? null; + + if ($value === null) { + $properties['percentage'] = null; + goto after_percentage; + } + + $properties['percentage'] = $value; + + after_percentage: + + $value = $payload['percentile'] ?? null; + + if ($value === null) { + $properties['percentile'] = null; + goto after_percentile; + } + + $properties['percentile'] = $value; + + after_percentile: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecurityAdvisoryEpss::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecurityAdvisoryEpss(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependabotAlertSecurityVulnerability(array $payload): DependabotAlertSecurityVulnerability { $properties = []; @@ -5212,6 +5275,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlertSecurityVulnerability' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependabotAlertSecurityVulnerability($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependabotAlertSecurityVulnerability⚡️FirstPatchedVersion($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), @@ -5524,6 +5588,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $cvssSeverities = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($cvssSeverities); after_cvssSeverities: $result['cvss_severities'] = $cvssSeverities; + $epss = $object->epss; + + if ($epss === null) { + goto after_epss; + } + + $epss = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($epss); + after_epss: $result['epss'] = $epss; + $cwes = $object->cwes; static $cwesSerializer0; @@ -5664,6 +5737,30 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss(mixed $object): mixed + { + assert($object instanceof SecurityAdvisoryEpss); + $result = []; + + $percentage = $object->percentage; + + if ($percentage === null) { + goto after_percentage; + } + + after_percentage: $result['percentage'] = $percentage; + + $percentile = $object->percentile; + + if ($percentile === null) { + goto after_percentile; + } + + after_percentile: $result['percentile'] = $percentile; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependabotAlertSecurityVulnerability(mixed $object): mixed { assert($object instanceof DependabotAlertSecurityVulnerability); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php index be72c6669d5..1ff5fc00119 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php @@ -853,7 +853,7 @@ public function hydrateObject(string $className, array $payload): object return match ($className) { '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Root' => $this->getObjectMapperOperation🌀Root()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BasicError', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ValidationErrorSimple' => $this->getObjectMapperOperation🌀Advisories()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory\\Epss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAdvisoryEpss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Integration', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Integration\\Permissions' => $this->getObjectMapperOperation🌀App()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookConfig' => $this->getObjectMapperOperation🌀App🌀Hook🌀Config()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ScimError', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ValidationError' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries()->hydrateObject($className, $payload), @@ -1262,7 +1262,7 @@ public function serializeObjectOfType(object $object, string $className): mixed return match ($className) { '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Root' => $this->getObjectMapperOperation🌀Root()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BasicError', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ValidationErrorSimple' => $this->getObjectMapperOperation🌀Advisories()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory\\Epss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAdvisoryEpss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Integration', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Integration\\Permissions' => $this->getObjectMapperOperation🌀App()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookConfig' => $this->getObjectMapperOperation🌀App🌀Hook🌀Config()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ScimError', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ValidationError' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries()->serializeObject($object), diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php index 816acc89f19..09ed082b159 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $enterprise, string $state, string $severity, string $ecosystem, string $package, string $epssPercentage, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $first = 30, int $perPage = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Dependabot\ListAlertsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $state, $severity, $ecosystem, $package, $epssPercentage, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForOrg.php index ee314354285..4f86e8b0bdf 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForOrg.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForOrg.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $org, string $state, string $severity, string $ecosystem, string $package, string $epssPercentage, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $first = 30, int $perPage = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Dependabot\ListAlertsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $state, $severity, $ecosystem, $package, $epssPercentage, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepo.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepo.php index 7d098c40eba..73f24480a60 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepo.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepo.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $epssPercentage, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30, int $first = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Dependabot\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $epssPercentage, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php index ef33fca82d6..6fcd4066d24 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $epssPercentage, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30, int $first = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Dependabot\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $epssPercentage, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/CreateNetworkConfigurationForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/CreateNetworkConfigurationForEnterprise.php index f4c19e5d384..1a93bc1a066 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/CreateNetworkConfigurationForEnterprise.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/CreateNetworkConfigurationForEnterprise.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $enterprise, array $params): NetworkConfiguration { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\HostedCompute\CreateNetworkConfigurationForEnterprise($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $enterprise); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/CreateNetworkConfigurationForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/CreateNetworkConfigurationForOrg.php index f222550fbef..1ce1d5ffa3c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/CreateNetworkConfigurationForOrg.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/CreateNetworkConfigurationForOrg.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, array $params): NetworkConfiguration { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\HostedCompute\CreateNetworkConfigurationForOrg($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/DeleteNetworkConfigurationFromEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/DeleteNetworkConfigurationFromEnterprise.php index a66b670a453..9dd211febff 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/DeleteNetworkConfigurationFromEnterprise.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/DeleteNetworkConfigurationFromEnterprise.php @@ -22,6 +22,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $enterprise, string $networkConfigurationId): WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\HostedCompute\DeleteNetworkConfigurationFromEnterprise($enterprise, $networkConfigurationId); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/DeleteNetworkConfigurationFromOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/DeleteNetworkConfigurationFromOrg.php index 9b3fade7b08..f2212436cc6 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/DeleteNetworkConfigurationFromOrg.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/DeleteNetworkConfigurationFromOrg.php @@ -22,6 +22,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, string $networkConfigurationId): WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\HostedCompute\DeleteNetworkConfigurationFromOrg($org, $networkConfigurationId); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkConfigurationForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkConfigurationForEnterprise.php index dcdb47c2933..75ebbc2646c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkConfigurationForEnterprise.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkConfigurationForEnterprise.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $enterprise, string $networkConfigurationId): NetworkConfiguration { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\HostedCompute\GetNetworkConfigurationForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $networkConfigurationId); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkConfigurationForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkConfigurationForOrg.php index 6a5b12fdfe0..69c99fa215e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkConfigurationForOrg.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkConfigurationForOrg.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, string $networkConfigurationId): NetworkConfiguration { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\HostedCompute\GetNetworkConfigurationForOrg($this->responseSchemaValidator, $this->hydrator, $org, $networkConfigurationId); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkSettingsForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkSettingsForEnterprise.php index f58e71b2273..cdeb732adb5 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkSettingsForEnterprise.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkSettingsForEnterprise.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $enterprise, string $networkSettingsId): NetworkSettings { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\HostedCompute\GetNetworkSettingsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $networkSettingsId); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkSettingsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkSettingsForOrg.php index d0daea3155f..757a6e081e8 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkSettingsForOrg.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/GetNetworkSettingsForOrg.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, string $networkSettingsId): NetworkSettings { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\HostedCompute\GetNetworkSettingsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $networkSettingsId); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/ListNetworkConfigurationsForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/ListNetworkConfigurationsForEnterprise.php index 7b6fd7ea37f..011d27664dc 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/ListNetworkConfigurationsForEnterprise.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/ListNetworkConfigurationsForEnterprise.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $enterprise, int $perPage = 30, int $page = 1): Ok { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\HostedCompute\ListNetworkConfigurationsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/ListNetworkConfigurationsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/ListNetworkConfigurationsForOrg.php index 0cbad5e6996..4546d212c93 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/ListNetworkConfigurationsForOrg.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/ListNetworkConfigurationsForOrg.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, int $perPage = 30, int $page = 1): Json { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\HostedCompute\ListNetworkConfigurationsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/UpdateNetworkConfigurationForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/UpdateNetworkConfigurationForEnterprise.php index 8d15231ffeb..67c3d67467b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/UpdateNetworkConfigurationForEnterprise.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/UpdateNetworkConfigurationForEnterprise.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $enterprise, string $networkConfigurationId, array $params): NetworkConfiguration { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\HostedCompute\UpdateNetworkConfigurationForEnterprise($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $enterprise, $networkConfigurationId); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/UpdateNetworkConfigurationForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/UpdateNetworkConfigurationForOrg.php index f6cc84199c3..47c171aaaf1 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/UpdateNetworkConfigurationForOrg.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/HostedCompute/UpdateNetworkConfigurationForOrg.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, string $networkConfigurationId, array $params): NetworkConfiguration { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\HostedCompute\UpdateNetworkConfigurationForOrg($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $networkConfigurationId); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Five.php index 8b316e6cc2e..5332a4333ab 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Five.php @@ -14,7 +14,6 @@ public function __construct(private Routers $routers) { } - /** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */ public function call(string $call, array $params, array $pathChunks): WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/HostedCompute.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/HostedCompute.php index 49531571958..bf8aa6519ff 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/HostedCompute.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/HostedCompute.php @@ -19,6 +19,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return */ public function deleteNetworkConfigurationFromEnterprise(array $params): WithoutBody { $arguments = []; @@ -39,6 +40,7 @@ public function deleteNetworkConfigurationFromEnterprise(array $params): Without return $operator->call($arguments['enterprise'], $arguments['network_configuration_id']); } + /** @return */ public function deleteNetworkConfigurationFromOrg(array $params): WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php index 4e5bdc317bb..b992abd4b6f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php @@ -18,7 +18,6 @@ public function __construct(private Routers $routers) { } - /** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */ public function call(string $call, array $params, array $pathChunks): ActionsHostedRunner|WithoutBody|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|ActionsCacheList|FileCommit { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Dependabot.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Dependabot.php index 3ad3c6c6ce3..bb7af7ef98f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Dependabot.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Dependabot.php @@ -26,7 +26,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForEnterprise(array $params): iterable|WithoutBody { $arguments = []; @@ -119,7 +119,7 @@ public function listAlertsForEnterprise(array $params): iterable|WithoutBody return $operator->call($arguments['enterprise'], $arguments['state'], $arguments['severity'], $arguments['ecosystem'], $arguments['package'], $arguments['epss_percentage'], $arguments['scope'], $arguments['before'], $arguments['after'], $arguments['last'], $arguments['sort'], $arguments['direction'], $arguments['first'], $arguments['per_page']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForOrg(array $params): iterable|WithoutBody { $arguments = []; @@ -275,7 +275,7 @@ public function getOrgSecret(array $params): OrganizationDependabotSecret return $operator->call($arguments['org'], $arguments['secret_name']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php index 75e49467004..f2be474006d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php @@ -59,7 +59,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Schema\NetworkConfiguration|Schema\NetworkSettings|Observable|Observable|Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok\Application\Json|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|Ok|ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|AuditLogStreamKey|iterable|WithoutBody|NetworkConfiguration|NetworkSettings|RepositoryRuleset|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|Json|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrganizationRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok\Application\Json|GroupMapping|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|EmptyObject { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Four.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Four.php index 3485b7e82cf..e324625257a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Four.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Four.php @@ -38,7 +38,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\HostedCompute\ListNetworkConfigurationsForEnterprise\Response\ApplicationJson\Ok|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): WebhookConfig|iterable|Installation|AnnouncementBanner|EnterpriseSecurityAnalysisSettings|string|Ok|WithoutBody|GistSimple|GitignoreTemplate|MarketplacePurchase|Thread|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|Json|ExternalGroups|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|InteractionLimitResponse|One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|Codespace|GpgKey|Key|Migration|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/HostedCompute.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/HostedCompute.php index 58c1b8176fe..bbc63343e3a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/HostedCompute.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/HostedCompute.php @@ -22,6 +22,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return */ public function listNetworkConfigurationsForEnterprise(array $params): Ok { $arguments = []; @@ -48,6 +49,7 @@ public function listNetworkConfigurationsForEnterprise(array $params): Ok return $operator->call($arguments['enterprise'], $arguments['per_page'], $arguments['page']); } + /** @return */ public function getNetworkConfigurationForEnterprise(array $params): NetworkConfiguration { $arguments = []; @@ -68,6 +70,7 @@ public function getNetworkConfigurationForEnterprise(array $params): NetworkConf return $operator->call($arguments['enterprise'], $arguments['network_configuration_id']); } + /** @return */ public function getNetworkSettingsForEnterprise(array $params): NetworkSettings { $arguments = []; @@ -88,6 +91,7 @@ public function getNetworkSettingsForEnterprise(array $params): NetworkSettings return $operator->call($arguments['enterprise'], $arguments['network_settings_id']); } + /** @return */ public function listNetworkConfigurationsForOrg(array $params): Json { $arguments = []; @@ -114,6 +118,7 @@ public function listNetworkConfigurationsForOrg(array $params): Json return $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); } + /** @return */ public function getNetworkConfigurationForOrg(array $params): NetworkConfiguration { $arguments = []; @@ -134,6 +139,7 @@ public function getNetworkConfigurationForOrg(array $params): NetworkConfigurati return $operator->call($arguments['org'], $arguments['network_configuration_id']); } + /** @return */ public function getNetworkSettingsForOrg(array $params): NetworkSettings { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php index 8e86dfc7e97..af677ad9cb2 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php @@ -90,7 +90,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\NetworkConfiguration|Schema\NetworkSettings|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): ActionsCacheUsageOrgEnterprise|ActionsHostedRunnerLimits|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok|ActionsHostedRunner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|GetAuditLogStreamConfig|CodeSecurityConfiguration|WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|CustomProperty|ActionsBillingUsage|AdvancedSecurityActiveCommitters|GetAllCostCenters|PackagesBillingUsage|CombinedBillingUsage|BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|CopilotSeatDetails|Package|RuleSuite|NetworkConfiguration|NetworkSettings|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|SecretScanningScanHistory|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|ScimEnterpriseGroupList|ScimEnterpriseUserList|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Dependabot.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Dependabot.php index ec6e1aba88a..97cad61b3fb 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Dependabot.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Dependabot.php @@ -21,7 +21,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php index e23026fc5e3..9bcdddf48e6 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Five.php index 0cf3d5e6ae4..bf1da4148d7 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Five.php @@ -25,7 +25,7 @@ public function __construct(private Routers $routers) { } - /** @return Schema\NetworkConfiguration|Observable| */ + /** @return |Observable */ public function call(string $call, array $params, array $pathChunks): NetworkConfiguration|iterable|GistComment|OrganizationCustomRepositoryRole|OrgHook|OrganizationRole|WithoutBody|TeamFull|ProjectCard|Import|TeamDiscussion|GroupMapping|OrgMembership { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/HostedCompute.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/HostedCompute.php index a3838350629..f41aa0e3c24 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/HostedCompute.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/HostedCompute.php @@ -19,6 +19,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return */ public function updateNetworkConfigurationForOrg(array $params): NetworkConfiguration { $arguments = []; @@ -39,6 +40,7 @@ public function updateNetworkConfigurationForOrg(array $params): NetworkConfigur return $operator->call($arguments['org'], $arguments['network_configuration_id'], $params); } + /** @return */ public function updateNetworkConfigurationForEnterprise(array $params): NetworkConfiguration { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Six.php index b4199674071..358391e5733 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Six.php @@ -36,7 +36,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\NetworkConfiguration */ public function call(string $call, array $params, array $pathChunks): ActionsHostedRunner|RunnerGroupsEnterprise|CodeSecurityConfiguration|WithoutBody|RunnerGroupsOrg|WebhookConfig|NetworkConfiguration|ExternalGroup|CheckRun|CheckSuitePreference|EmptyObject|CodeScanningDefaultSetupUpdateResponse|CommitComment|Hook|Import|RepositoryInvitation|Issue|BasicError|Label|Milestone|PullRequest|Release|RepositoryAdvisory { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Five.php index edede073386..6bb68216ffe 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Five.php @@ -48,7 +48,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\NetworkConfiguration */ public function call(string $call, array $params, array $pathChunks): InstallationToken|Authorization|ActionsHostedRunner|RunnerGroupsEnterprise|GetAuditLogStreamConfig|CodeSecurityConfiguration|WithoutBody|RunnerGroupsOrg|EmptyObject|NetworkConfiguration|ProjectCard|Json|Created|Autolink|CheckRun|CheckSuite|Codespace|Deployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|FullRepository|Hook|Issue|DeployKey|Label|MergedUpstream|Commit|Milestone|Page|Project|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|MinimalRepository|CodespaceExportDetails|CodespaceWithFullRepository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Four.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Four.php index e3b66f763cd..0bed67006ae 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Four.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Four.php @@ -32,7 +32,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\NetworkConfiguration */ public function call(string $call, array $params, array $pathChunks): Integration|Authorization|NetworkConfiguration|RepositoryRuleset|GistComment|WithoutBody|BaseGist|OrganizationCustomRepositoryRole|OrgHook|OrganizationInvitation|Migration|OrganizationRole|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|OrgPrivateRegistryConfigurationWithSelectedRepositories|Project|FullRepository|TeamFull|ProjectColumn|TeamDiscussion { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/HostedCompute.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/HostedCompute.php index 70171787942..d1ba693d8e2 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/HostedCompute.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/HostedCompute.php @@ -19,6 +19,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return */ public function createNetworkConfigurationForEnterprise(array $params): NetworkConfiguration { $arguments = []; @@ -33,6 +34,7 @@ public function createNetworkConfigurationForEnterprise(array $params): NetworkC return $operator->call($arguments['enterprise'], $params); } + /** @return */ public function createNetworkConfigurationForOrg(array $params): NetworkConfiguration { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Dependabot.php b/clients/GitHubEnterpriseCloud/src/Operation/Dependabot.php index a2bd1432984..468dd733c6d 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Dependabot.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Dependabot.php @@ -21,13 +21,13 @@ public function __construct(private Internal\Operators $operators) { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForEnterprise(string $enterprise, string $state, string $severity, string $ecosystem, string $package, string $epssPercentage, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $first, int $perPage): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForEnterprise()->call($enterprise, $state, $severity, $ecosystem, $package, $epssPercentage, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForOrg(string $org, string $state, string $severity, string $ecosystem, string $package, string $epssPercentage, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $first, int $perPage): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForOrg()->call($org, $state, $severity, $ecosystem, $package, $epssPercentage, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); @@ -87,13 +87,13 @@ public function removeSelectedRepoFromOrgSecret(string $org, string $secretName, return $this->operators->dependabot👷RemoveSelectedRepoFromOrgSecret()->call($org, $secretName, $repositoryId); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $epssPercentage, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $page, int $perPage, int $first): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForRepo()->call($owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $epssPercentage, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $epssPercentage, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $page, int $perPage, int $first): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForRepoListing()->call($owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $epssPercentage, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); diff --git a/clients/GitHubEnterpriseCloud/src/Operation/HostedCompute.php b/clients/GitHubEnterpriseCloud/src/Operation/HostedCompute.php index d5ff20bd264..1034f1e7229 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/HostedCompute.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/HostedCompute.php @@ -17,61 +17,73 @@ public function __construct(private Internal\Operators $operators) { } + /** @return */ public function listNetworkConfigurationsForEnterprise(string $enterprise, int $perPage, int $page): Ok { return $this->operators->hostedCompute👷ListNetworkConfigurationsForEnterprise()->call($enterprise, $perPage, $page); } + /** @return */ public function createNetworkConfigurationForEnterprise(string $enterprise, array $params): NetworkConfiguration { return $this->operators->hostedCompute👷CreateNetworkConfigurationForEnterprise()->call($enterprise, $params); } + /** @return */ public function getNetworkConfigurationForEnterprise(string $enterprise, string $networkConfigurationId): NetworkConfiguration { return $this->operators->hostedCompute👷GetNetworkConfigurationForEnterprise()->call($enterprise, $networkConfigurationId); } + /** @return */ public function deleteNetworkConfigurationFromEnterprise(string $enterprise, string $networkConfigurationId): WithoutBody { return $this->operators->hostedCompute👷DeleteNetworkConfigurationFromEnterprise()->call($enterprise, $networkConfigurationId); } + /** @return */ public function updateNetworkConfigurationForEnterprise(string $enterprise, string $networkConfigurationId, array $params): NetworkConfiguration { return $this->operators->hostedCompute👷UpdateNetworkConfigurationForEnterprise()->call($enterprise, $networkConfigurationId, $params); } + /** @return */ public function getNetworkSettingsForEnterprise(string $enterprise, string $networkSettingsId): NetworkSettings { return $this->operators->hostedCompute👷GetNetworkSettingsForEnterprise()->call($enterprise, $networkSettingsId); } + /** @return */ public function listNetworkConfigurationsForOrg(string $org, int $perPage, int $page): Json { return $this->operators->hostedCompute👷ListNetworkConfigurationsForOrg()->call($org, $perPage, $page); } + /** @return */ public function createNetworkConfigurationForOrg(string $org, array $params): NetworkConfiguration { return $this->operators->hostedCompute👷CreateNetworkConfigurationForOrg()->call($org, $params); } + /** @return */ public function getNetworkConfigurationForOrg(string $org, string $networkConfigurationId): NetworkConfiguration { return $this->operators->hostedCompute👷GetNetworkConfigurationForOrg()->call($org, $networkConfigurationId); } + /** @return */ public function deleteNetworkConfigurationFromOrg(string $org, string $networkConfigurationId): WithoutBody { return $this->operators->hostedCompute👷DeleteNetworkConfigurationFromOrg()->call($org, $networkConfigurationId); } + /** @return */ public function updateNetworkConfigurationForOrg(string $org, string $networkConfigurationId, array $params): NetworkConfiguration { return $this->operators->hostedCompute👷UpdateNetworkConfigurationForOrg()->call($org, $networkConfigurationId, $params); } + /** @return */ public function getNetworkSettingsForOrg(string $org, string $networkSettingsId): NetworkSettings { return $this->operators->hostedCompute👷GetNetworkSettingsForOrg()->call($org, $networkSettingsId); diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index 519c8d4431c..0f454652b83 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -504,7 +504,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /enterprises/{enterprise}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /enterprises/{enterprise}/license-sync-status') { @@ -512,27 +512,27 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /enterprises/{enterprise}/network-configurations') { - return $this->typeResolver->resolve('Schema\\Operations\\HostedCompute\\ListNetworkConfigurationsForEnterprise\\Response\\ApplicationJson\\Ok'); + return $this->typeResolver->resolve(''); } if ($call === 'POST /enterprises/{enterprise}/network-configurations') { - return $this->typeResolver->resolve('Schema\\NetworkConfiguration'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /enterprises/{enterprise}/network-configurations/{network_configuration_id}') { - return $this->typeResolver->resolve('Schema\\NetworkConfiguration'); + return $this->typeResolver->resolve(''); } if ($call === 'DELETE /enterprises/{enterprise}/network-configurations/{network_configuration_id}') { - return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'PATCH /enterprises/{enterprise}/network-configurations/{network_configuration_id}') { - return $this->typeResolver->resolve('Schema\\NetworkConfiguration'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /enterprises/{enterprise}/network-settings/{network_settings_id}') { - return $this->typeResolver->resolve('Schema\\NetworkSettings'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /enterprises/{enterprise}/properties/schema') { @@ -1408,7 +1408,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /orgs/{org}/dependabot/secrets') { @@ -2060,27 +2060,27 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/settings/network-configurations') { - return $this->typeResolver->resolve('Schema\\Operations\\HostedCompute\\ListNetworkConfigurationsForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json'); + return $this->typeResolver->resolve(''); } if ($call === 'POST /orgs/{org}/settings/network-configurations') { - return $this->typeResolver->resolve('Schema\\NetworkConfiguration'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /orgs/{org}/settings/network-configurations/{network_configuration_id}') { - return $this->typeResolver->resolve('Schema\\NetworkConfiguration'); + return $this->typeResolver->resolve(''); } if ($call === 'DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}') { - return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}') { - return $this->typeResolver->resolve('Schema\\NetworkConfiguration'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /orgs/{org}/settings/network-settings/{network_settings_id}') { - return $this->typeResolver->resolve('Schema\\NetworkSettings'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /orgs/{org}/team-sync/groups') { @@ -3260,11 +3260,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'LIST /repos/{owner}/{repo}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}') { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/DependabotAlert.php b/clients/GitHubEnterpriseCloud/src/Schema/DependabotAlert.php index 8a683734bae..d0abe5f7694 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/DependabotAlert.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/DependabotAlert.php @@ -313,6 +313,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number" + }, + "percentile": { + "maximum": 100, + "minimum": 0, + "type": "number" + } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true + }, "cwes": { "type": "array", "items": { @@ -800,6 +820,10 @@ "score": 0.5 } }, + "epss": { + "percentage": 1, + "percentile": 1 + }, "cwes": [ { "cwe_id": "generated", diff --git a/clients/GitHubEnterpriseCloud/src/Schema/DependabotAlertSecurityAdvisory.php b/clients/GitHubEnterpriseCloud/src/Schema/DependabotAlertSecurityAdvisory.php index 904f719f392..4643dda6bee 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/DependabotAlertSecurityAdvisory.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/DependabotAlertSecurityAdvisory.php @@ -231,6 +231,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number" + }, + "percentile": { + "maximum": 100, + "minimum": 0, + "type": "number" + } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true + }, "cwes": { "type": "array", "items": { @@ -383,6 +403,10 @@ "score": 0.5 } }, + "epss": { + "percentage": 1, + "percentile": 1 + }, "cwes": [ { "cwe_id": "generated", @@ -424,6 +448,7 @@ * vulnerabilities: Vulnerable version range information for the advisory. * severity: The severity of the advisory. * cvss: Details for the advisory pertaining to the Common Vulnerability Scoring System. + * epss: The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss). * cwes: Details for the advisory pertaining to Common Weakness Enumeration. * identifiers: Values that identify this advisory among security information sources. * references: Links to additional advisory information. @@ -434,7 +459,7 @@ public function __construct(#[MapFrom('ghsa_id')] public string $ghsaId, #[MapFrom('cve_id')] public string|null $cveId, public string $summary, public string $description, public array $vulnerabilities, public string $severity, public Schema\DependabotAlertSecurityAdvisory\Cvss $cvss, #[MapFrom('cvss_severities')] - public Schema\CvssSeverities|null $cvssSeverities, public array $cwes, public array $identifiers, public array $references, #[MapFrom('published_at')] + public Schema\CvssSeverities|null $cvssSeverities, public Schema\SecurityAdvisoryEpss|null $epss, public array $cwes, public array $identifiers, public array $references, #[MapFrom('published_at')] public string $publishedAt, #[MapFrom('updated_at')] public string $updatedAt, #[MapFrom('withdrawn_at')] public string|null $withdrawnAt,) diff --git a/clients/GitHubEnterpriseCloud/src/Schema/DependabotAlertWithRepository.php b/clients/GitHubEnterpriseCloud/src/Schema/DependabotAlertWithRepository.php index 6b72e221152..a54c5ad544d 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/DependabotAlertWithRepository.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/DependabotAlertWithRepository.php @@ -314,6 +314,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number" + }, + "percentile": { + "maximum": 100, + "minimum": 0, + "type": "number" + } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true + }, "cwes": { "type": "array", "items": { @@ -1352,6 +1372,10 @@ "score": 0.5 } }, + "epss": { + "percentage": 1, + "percentile": 1 + }, "cwes": [ { "cwe_id": "generated", diff --git a/clients/GitHubEnterpriseCloud/src/Schema/GlobalAdvisory.php b/clients/GitHubEnterpriseCloud/src/Schema/GlobalAdvisory.php index 0dbae80c12c..1d19acb4ecb 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/GlobalAdvisory.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/GlobalAdvisory.php @@ -365,6 +365,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number" + }, + "percentile": { + "maximum": 100, + "minimum": 0, + "type": "number" + } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true + }, "cwes": { "type": [ "array", @@ -389,20 +409,6 @@ } } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", @@ -643,11 +649,11 @@ "score": 0.5 } }, - "cwes": null, "epss": { "percentage": 1, "percentile": 1 }, + "cwes": null, "credits": null }'; @@ -669,6 +675,7 @@ This field is only populated when the advisory is imported from the National Vulnerability Database. * withdrawnAt: The date and time of when the advisory was withdrawn, in ISO 8601 format. * vulnerabilities: The products and respective version ranges affected by the advisory. + * epss: The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss). * credits: The users who contributed to the advisory. */ public function __construct(#[MapFrom('ghsa_id')] @@ -682,7 +689,7 @@ public function __construct(#[MapFrom('ghsa_id')] public string|null $githubReviewedAt, #[MapFrom('nvd_published_at')] public string|null $nvdPublishedAt, #[MapFrom('withdrawn_at')] public string|null $withdrawnAt, public array|null $vulnerabilities, public Schema\GlobalAdvisory\Cvss|null $cvss, #[MapFrom('cvss_severities')] - public Schema\CvssSeverities|null $cvssSeverities, public array|null $cwes, public Schema\GlobalAdvisory\Epss|null $epss, public array|null $credits,) + public Schema\CvssSeverities|null $cvssSeverities, public Schema\SecurityAdvisoryEpss|null $epss, public array|null $cwes, public array|null $credits,) { } } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/GlobalAdvisory/Epss.php b/clients/GitHubEnterpriseCloud/src/Schema/SecurityAdvisoryEpss.php similarity index 50% rename from clients/GitHubEnterpriseCloud/src/Schema/GlobalAdvisory/Epss.php rename to clients/GitHubEnterpriseCloud/src/Schema/SecurityAdvisoryEpss.php index 2afc88ec265..db23824db48 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/GlobalAdvisory/Epss.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/SecurityAdvisoryEpss.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Epss +final readonly class SecurityAdvisoryEpss { public const SCHEMA_JSON = '{ "type": [ @@ -13,15 +13,21 @@ ], "properties": { "percentage": { + "maximum": 100, + "minimum": 0, "type": "number" }, "percentile": { + "maximum": 100, + "minimum": 0, "type": "number" } - } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true }'; public const SCHEMA_TITLE = ''; - public const SCHEMA_DESCRIPTION = ''; + public const SCHEMA_DESCRIPTION = 'The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).'; public const SCHEMA_EXAMPLE_DATA = '{ "percentage": 1, "percentile": 1 diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertAutoDismissed.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertAutoDismissed.php index 50fdbebbbaf..18e468d08b3 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertAutoDismissed.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertAutoDismissed.php @@ -328,6 +328,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number" + }, + "percentile": { + "maximum": 100, + "minimum": 0, + "type": "number" + } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true + }, "cwes": { "type": "array", "items": { @@ -2690,6 +2710,10 @@ "score": 0.5 } }, + "epss": { + "percentage": 1, + "percentile": 1 + }, "cwes": [ { "cwe_id": "generated", diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertAutoReopened.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertAutoReopened.php index 75650a9e099..1327cb77123 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertAutoReopened.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertAutoReopened.php @@ -328,6 +328,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number" + }, + "percentile": { + "maximum": 100, + "minimum": 0, + "type": "number" + } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true + }, "cwes": { "type": "array", "items": { @@ -2690,6 +2710,10 @@ "score": 0.5 } }, + "epss": { + "percentage": 1, + "percentile": 1 + }, "cwes": [ { "cwe_id": "generated", diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertCreated.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertCreated.php index 44f8ca630f7..53bf93699e4 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertCreated.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertCreated.php @@ -328,6 +328,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number" + }, + "percentile": { + "maximum": 100, + "minimum": 0, + "type": "number" + } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true + }, "cwes": { "type": "array", "items": { @@ -2690,6 +2710,10 @@ "score": 0.5 } }, + "epss": { + "percentage": 1, + "percentile": 1 + }, "cwes": [ { "cwe_id": "generated", diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertDismissed.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertDismissed.php index 23fda1aca02..78adb001a8c 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertDismissed.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertDismissed.php @@ -328,6 +328,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number" + }, + "percentile": { + "maximum": 100, + "minimum": 0, + "type": "number" + } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true + }, "cwes": { "type": "array", "items": { @@ -2690,6 +2710,10 @@ "score": 0.5 } }, + "epss": { + "percentage": 1, + "percentile": 1 + }, "cwes": [ { "cwe_id": "generated", diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertFixed.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertFixed.php index 25aee51feaa..6ac367e4553 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertFixed.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertFixed.php @@ -328,6 +328,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number" + }, + "percentile": { + "maximum": 100, + "minimum": 0, + "type": "number" + } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true + }, "cwes": { "type": "array", "items": { @@ -2690,6 +2710,10 @@ "score": 0.5 } }, + "epss": { + "percentage": 1, + "percentile": 1 + }, "cwes": [ { "cwe_id": "generated", diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertReintroduced.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertReintroduced.php index 212c6c80d45..af2f92eb430 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertReintroduced.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertReintroduced.php @@ -328,6 +328,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number" + }, + "percentile": { + "maximum": 100, + "minimum": 0, + "type": "number" + } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true + }, "cwes": { "type": "array", "items": { @@ -2690,6 +2710,10 @@ "score": 0.5 } }, + "epss": { + "percentage": 1, + "percentile": 1 + }, "cwes": [ { "cwe_id": "generated", diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertReopened.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertReopened.php index a935255d080..e322d537451 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertReopened.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookDependabotAlertReopened.php @@ -328,6 +328,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "properties": { + "percentage": { + "maximum": 100, + "minimum": 0, + "type": "number" + }, + "percentile": { + "maximum": 100, + "minimum": 0, + "type": "number" + } + }, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https:\\/\\/www.first.org\\/epss).", + "readOnly": true + }, "cwes": { "type": "array", "items": { @@ -2690,6 +2710,10 @@ "score": 0.5 } }, + "epss": { + "percentage": 1, + "percentile": 1 + }, "cwes": [ { "cwe_id": "generated", diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index 015adcb2e52..ade11f52fd6 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -132,14 +132,14 @@ function authHeader(): string assertType('Observable', $client->call('LIST /enterprises/{enterprise}/copilot/metrics')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/copilot/usage')); assertType('Observable', $client->call('LIST /enterprises/{enterprise}/copilot/usage')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); assertType('', $client->call('GET /enterprises/{enterprise}/license-sync-status')); -assertType('Schema\\Operations\\HostedCompute\\ListNetworkConfigurationsForEnterprise\\Response\\ApplicationJson\\Ok', $client->call('GET /enterprises/{enterprise}/network-configurations')); -assertType('Schema\\NetworkConfiguration', $client->call('POST /enterprises/{enterprise}/network-configurations')); -assertType('Schema\\NetworkConfiguration', $client->call('GET /enterprises/{enterprise}/network-configurations/{network_configuration_id}')); -assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /enterprises/{enterprise}/network-configurations/{network_configuration_id}')); -assertType('Schema\\NetworkConfiguration', $client->call('PATCH /enterprises/{enterprise}/network-configurations/{network_configuration_id}')); -assertType('Schema\\NetworkSettings', $client->call('GET /enterprises/{enterprise}/network-settings/{network_settings_id}')); +assertType('', $client->call('GET /enterprises/{enterprise}/network-configurations')); +assertType('', $client->call('POST /enterprises/{enterprise}/network-configurations')); +assertType('', $client->call('GET /enterprises/{enterprise}/network-configurations/{network_configuration_id}')); +assertType('', $client->call('DELETE /enterprises/{enterprise}/network-configurations/{network_configuration_id}')); +assertType('', $client->call('PATCH /enterprises/{enterprise}/network-configurations/{network_configuration_id}')); +assertType('', $client->call('GET /enterprises/{enterprise}/network-settings/{network_settings_id}')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/properties/schema')); assertType('Observable', $client->call('PATCH /enterprises/{enterprise}/properties/schema')); assertType('', $client->call('GET /enterprises/{enterprise}/properties/schema/{custom_property_name}')); @@ -358,7 +358,7 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/custom_roles/{role_id}')); assertType('', $client->call('DELETE /orgs/{org}/custom_roles/{role_id}')); assertType('', $client->call('PATCH /orgs/{org}/custom_roles/{role_id}')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /orgs/{org}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /orgs/{org}/dependabot/alerts')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets/public-key')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets/{secret_name}')); @@ -521,12 +521,12 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/settings/billing/advanced-security')); assertType('', $client->call('GET /orgs/{org}/settings/billing/packages')); assertType('', $client->call('GET /orgs/{org}/settings/billing/shared-storage')); -assertType('Schema\\Operations\\HostedCompute\\ListNetworkConfigurationsForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json', $client->call('GET /orgs/{org}/settings/network-configurations')); -assertType('Schema\\NetworkConfiguration', $client->call('POST /orgs/{org}/settings/network-configurations')); -assertType('Schema\\NetworkConfiguration', $client->call('GET /orgs/{org}/settings/network-configurations/{network_configuration_id}')); -assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}')); -assertType('Schema\\NetworkConfiguration', $client->call('PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}')); -assertType('Schema\\NetworkSettings', $client->call('GET /orgs/{org}/settings/network-settings/{network_settings_id}')); +assertType('', $client->call('GET /orgs/{org}/settings/network-configurations')); +assertType('', $client->call('POST /orgs/{org}/settings/network-configurations')); +assertType('', $client->call('GET /orgs/{org}/settings/network-configurations/{network_configuration_id}')); +assertType('', $client->call('DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}')); +assertType('', $client->call('PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}')); +assertType('', $client->call('GET /orgs/{org}/settings/network-settings/{network_settings_id}')); assertType('', $client->call('GET /orgs/{org}/team-sync/groups')); assertType('Observable', $client->call('GET /orgs/{org}/team/{team_slug}/copilot/metrics')); assertType('Observable', $client->call('LIST /orgs/{org}/team/{team_slug}/copilot/metrics')); @@ -821,8 +821,8 @@ function authHeader(): string assertType('', $client->call('DELETE /repos/{owner}/{repo}/contents/{path}')); assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/contributors')); assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/contributors')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('LIST /repos/{owner}/{repo}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/dependabot/alerts')); assertType('', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}')); assertType('', $client->call('GET /repos/{owner}/{repo}/dependabot/secrets')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index cd060666bd2..e9031bc4b18 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -20686,7 +20686,7 @@ paths: operationId: hosted-compute/list-network-configurations-for-org externalDocs: description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#list-hosted-compute-network-configurations-for-an-organization + url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization parameters: - "$ref": "#/components/parameters/org" - "$ref": "#/components/parameters/per-page" @@ -20717,7 +20717,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: settings + category: orgs subcategory: network-configurations post: summary: Create a hosted compute network configuration for an organization @@ -20730,7 +20730,7 @@ paths: operationId: hosted-compute/create-network-configuration-for-org externalDocs: description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization + url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization parameters: - "$ref": "#/components/parameters/org" requestBody: @@ -20782,7 +20782,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: settings + category: orgs subcategory: network-configurations "/orgs/{org}/settings/network-configurations/{network_configuration_id}": get: @@ -20796,7 +20796,7 @@ paths: operationId: hosted-compute/get-network-configuration-for-org externalDocs: description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization + url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization parameters: - "$ref": "#/components/parameters/org" - "$ref": "#/components/parameters/network-configuration-id" @@ -20816,7 +20816,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: settings + category: orgs subcategory: network-configurations patch: summary: Update a hosted compute network configuration for an organization @@ -20829,7 +20829,7 @@ paths: operationId: hosted-compute/update-network-configuration-for-org externalDocs: description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization + url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization parameters: - "$ref": "#/components/parameters/org" - "$ref": "#/components/parameters/network-configuration-id" @@ -20879,7 +20879,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: settings + category: orgs subcategory: network-configurations delete: summary: Delete a hosted compute network configuration from an organization @@ -20892,7 +20892,7 @@ paths: operationId: hosted-compute/delete-network-configuration-from-org externalDocs: description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization + url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization parameters: - "$ref": "#/components/parameters/org" - "$ref": "#/components/parameters/network-configuration-id" @@ -20902,7 +20902,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: settings + category: orgs subcategory: network-configurations "/orgs/{org}/settings/network-settings/{network_settings_id}": get: @@ -20916,7 +20916,7 @@ paths: operationId: hosted-compute/get-network-settings-for-org externalDocs: description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization + url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization parameters: - "$ref": "#/components/parameters/org" - "$ref": "#/components/parameters/network-settings-id" @@ -20936,7 +20936,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: settings + category: orgs subcategory: network-configurations "/orgs/{org}/team-sync/groups": get: @@ -75363,6 +75363,22 @@ components: required: - vector_string - score + security-advisory-epss: + type: + - object + - 'null' + readOnly: true + description: The EPSS scores as calculated by the [Exploit Prediction Scoring + System](https://www.first.org/epss). + properties: + percentage: + type: number + minimum: 0 + maximum: 100 + percentile: + type: number + minimum: 0 + maximum: 100 simple-user: title: Simple User description: A GitHub user. @@ -75656,6 +75672,8 @@ components: - score cvss_severities: "$ref": "#/components/schemas/cvss-severities" + epss: + "$ref": "#/components/schemas/security-advisory-epss" cwes: type: - array @@ -75673,15 +75691,6 @@ components: required: - cwe_id - name - epss: - type: - - object - - 'null' - properties: - percentage: - type: number - percentile: - type: number credits: type: - array @@ -81088,6 +81097,8 @@ components: additionalProperties: false cvss_severities: "$ref": "#/components/schemas/cvss-severities" + epss: + "$ref": "#/components/schemas/security-advisory-epss" cwes: type: array description: Details for the advisory pertaining to Common Weakness Enumeration. @@ -216071,6 +216082,9 @@ components: cvss_v4: vector_string: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N score: 8.7 + epss: + - percentage: 0.00045 + percentile: 0.16001e0 cwes: - cwe_id: CWE-200 name: Exposure of Sensitive Information to an Unauthorized Actor @@ -228906,6 +228920,9 @@ components: cvss_v4: vector_string: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N score: 8.7 + epss: + - percentage: 0.00045 + percentile: 0.16001e0 cwes: - cwe_id: CWE-200 name: Exposure of Sensitive Information to an Unauthorized Actor @@ -229092,6 +229109,9 @@ components: cvss_v4: vector_string: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N score: 8.5 + epss: + - percentage: 0.00045 + percentile: 0.16001e0 cwes: - cwe_id: CWE-532 name: Insertion of Sensitive Information into Log File