diff --git a/clients/GitHub/README.md b/clients/GitHub/README.md index 93b1b3de706..52d40d291b0 100644 --- a/clients/GitHub/README.md +++ b/clients/GitHub/README.md @@ -9021,7 +9021,7 @@ $client->operations()->hostedCompute()->listNetworkConfigurationsForOrg( ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/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/rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization). ### hosted-compute/create-network-configuration-for-org @@ -9041,7 +9041,7 @@ $client->operations()->hostedCompute()->createNetworkConfigurationForOrg( ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/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/rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization). ### hosted-compute/get-network-configuration-for-org @@ -9063,7 +9063,7 @@ $client->operations()->hostedCompute()->getNetworkConfigurationForOrg( or ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/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/rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization). ### hosted-compute/delete-network-configuration-from-org @@ -9085,7 +9085,7 @@ $client->operations()->hostedCompute()->deleteNetworkConfigurationFromOrg( ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/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/rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization). ### hosted-compute/update-network-configuration-for-org @@ -9107,7 +9107,7 @@ $client->operations()->hostedCompute()->updateNetworkConfigurationForOrg( ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/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/rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization). ### hosted-compute/get-network-settings-for-org @@ -9129,7 +9129,7 @@ $client->operations()->hostedCompute()->getNetworkSettingsForOrg( org: 'g ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/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/rest/orgs/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization). ### copilot/copilot-metrics-for-team diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 4b0fcd72166..1af6a392446 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "b1df7aeeba72bb96f2ca61a7edd34136", + "specHash": "7fb0426f383ed9712cce3fdba9572d5a", "generatedFiles": { "files": [ { @@ -128,7 +128,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DependabotAlertSecurityAdvisory.php", - "hash": "099f3d133d82178118021063388c7fd8" + "hash": "96549d8518347c46d5a5e25284e262cc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AlertUrl.php", @@ -164,7 +164,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DependabotAlertWithRepository.php", - "hash": "ac3ceef4c51cb53def3f693a8c00b9f3" + "hash": "d0a3d8c1e4a1d1125ae948de2e2151f6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertState.php", @@ -1008,7 +1008,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DependabotAlert.php", - "hash": "e4ec74d0bf807b4cfffa426dcafc007c" + "hash": "481f5e2e831cc7f376dc4af48bdc8ebf" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DependabotSecret.php", @@ -1660,31 +1660,31 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertAutoDismissed.php", - "hash": "fd2e4c798c9b040f4de41c950f4917be" + "hash": "2fbd1c6ba4f9549cf824b7062494070f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertAutoReopened.php", - "hash": "5e92440005dbef5cf40732d99d31d83a" + "hash": "cdadd53d4c272e8d1080285a7cbad1af" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertCreated.php", - "hash": "1d3b1e427af004562934e0d364249e91" + "hash": "63e8121d36942160adfd0470ff82981a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertDismissed.php", - "hash": "1fb4dfec9572a753981864d67b5c0850" + "hash": "1962366c1fa3f8ebeba18a2bbc18235f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertFixed.php", - "hash": "4517316018f0f87bfc1b94ec86dc08cd" + "hash": "eaf410f2f794b2611a5d886af066b67d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertReintroduced.php", - "hash": "7752ceab3a24812ec260c04cb6ebbbb5" + "hash": "0ca2ff1f41d7eeadeb813bdf160354a6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertReopened.php", - "hash": "c5b31c637bc1b2c20e4aad801ac9f54d" + "hash": "2a3f4ca36fb746a6c193241418529043" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeployKeyCreated.php", @@ -5528,7 +5528,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Dependabot.php", - "hash": "d675bb91020899b4ea6eb2ecd34e6a01" + "hash": "a878768800cea0352b3fd41b7491b113" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/SecretScanning.php", @@ -5564,7 +5564,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php", - "hash": "deaf8f78e225d011cf141f8c315147e8" + "hash": "6cfc2e1d06fc380bf66cb736ffc55125" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Oidc.php", @@ -11628,7 +11628,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory.php", - "hash": "a39016bcd3906c50a9a03fcf8151141e" + "hash": "15e1eff41768c3e3956e03b5465e17ec" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertResolutionWebhook.php", @@ -12340,7 +12340,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForEnterprise.php", - "hash": "72667c990e85c7b747d6da2c2e017c69" + "hash": "2af89bec79f52338bf4266d4b76d6dcd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterpriseTest.php", @@ -13888,7 +13888,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForOrg.php", - "hash": "34658210980ca5b2b4c3d114ab7f86c7" + "hash": "88ab837aae76e33a47886786e854092a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrgTest.php", @@ -18268,7 +18268,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepo.php", - "hash": "06f8d91cfc439f2e1b64dba5ed705b19" + "hash": "2fefef48e79a3c4b056e247b27fd9a81" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoTest.php", @@ -18280,7 +18280,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepoListing.php", - "hash": "49331e082cda85a98f454333e33a2430" + "hash": "f9f6e3493873cfbd9497f911ea524d57" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoListingTest.php", @@ -24400,7 +24400,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php", - "hash": "7e7db270e74c1368b9d05473e2a43921" + "hash": "cbb96b4873a31ed11e656619507c7533" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/SecretScanning.php", @@ -24668,7 +24668,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Dependabot.php", - "hash": "5fd3ab604ca27cd3d8fde1f89480b316" + "hash": "76674de928f96bd9d0a6f0361fcb4d9b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Reactions.php", @@ -24852,11 +24852,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "7b29e1387c914123ab50f7e75c7180b8" + "hash": "b731257ffefed1c5802a07a31f31dc8e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "e27d07d957e4f07eda5fe14f51eb49a6" + "hash": "c4a7e9ba89e7cad14e37d8076a8a4817" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -24884,7 +24884,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Five.php", - "hash": "fba350d16c558144c9eecb4821d0cea8" + "hash": "1312f0a0a1db63876e7e74907d4b770f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Two.php", @@ -24924,7 +24924,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Six.php", - "hash": "0bb54d12bc53c96d2c32b4d6e8f2b78d" + "hash": "a70e70ef6c5f997e5c2104fd17024633" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Seven.php", @@ -24960,7 +24960,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "ed11367ddbea9bae53fda7450797048c" + "hash": "71625fca086e278619781593e380e8fb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -24996,7 +24996,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php", - "hash": "d8310c53495dd65e19ea3976cd940e85" + "hash": "e802c471325718bac5ec58fad335fd90" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Eight.php", @@ -25072,7 +25072,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Advisories\/GhsaId.php", - "hash": "851fcd5c098fd282f7a7f1384200b93a" + "hash": "9c5b42d7e37bc7454c5ad22ac16bb6e7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App.php", @@ -26136,7 +26136,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Dependabot\/Alerts\/AlertNumber.php", - "hash": "eaeb66192c14cd21699136345e589531" + "hash": "e996ec8cc3a491b3332a767fdd015a25" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Dependabot\/Secrets.php", @@ -27052,7 +27052,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "fc64ac95e67750b18902bbfbd439b3e7" + "hash": "7f0c07c0d6c355027282e907eef1c7f2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php", @@ -27632,11 +27632,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "487474fa65028f21c8a62d0b5c8299d3" + "hash": "30e758ef83b790f4c37e1a0186d4f74f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "3973903042d981bbd8e9f3938d0b006b" + "hash": "ec7f8ec78c02c33e4922254efeb7a889" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -27968,7 +27968,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DependabotAlert.php", - "hash": "6e35e67d438d86bf4ab2eed6c1b14fa8" + "hash": "a8ba2098566aadc32304061858b218cb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeployKey.php", @@ -30102,10 +30102,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueRemoved.php", "hash": "db66dffc1ae5c37caab143e773344f72" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Epss.php", - "hash": "3e2f91d87e3438caffb7a7947f6d0974" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ArtifactAttestations.php", "hash": "73d8a39eb0d9799839abdca6d96d248a" @@ -31728,7 +31724,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/ListNetworkConfigurationsForOrg.php", - "hash": "909cd4d5bf661798e7606eafc6e721ff" + "hash": "d461da4f0917a805ed8fd9f87808f04c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/ListNetworkConfigurationsForOrgTest.php", @@ -31740,7 +31736,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/CreateNetworkConfigurationForOrg.php", - "hash": "34a6198e437e50e793be76bac9cccd91" + "hash": "8534bfa87a876462cac8a966894a46ac" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/CreateNetworkConfigurationForOrgTest.php", @@ -31752,7 +31748,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/GetNetworkConfigurationForOrg.php", - "hash": "456620886c2c2ba95479e16dbd6db422" + "hash": "bdff15c061472a5449c207173e545c88" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/GetNetworkConfigurationForOrgTest.php", @@ -31764,7 +31760,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/DeleteNetworkConfigurationFromOrg.php", - "hash": "da34649de06daaffb2e751c06f5b420d" + "hash": "de49e6102b0035121a6db944bd73de06" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/HostedCompute\/UpdateNetworkConfigurationForOrg.php", @@ -31772,7 +31768,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/UpdateNetworkConfigurationForOrg.php", - "hash": "af13690e9cddb429cadfd19bd8639258" + "hash": "f0e6534232cf05883bdfcea4d782871c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/UpdateNetworkConfigurationForOrgTest.php", @@ -31784,7 +31780,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/HostedCompute\/GetNetworkSettingsForOrg.php", - "hash": "e842313042276b9aa3feaeae45a0cc76" + "hash": "4c12adb5dc67dd68d3f61e89600d57da" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/HostedCompute\/GetNetworkSettingsForOrgTest.php", @@ -31812,23 +31808,23 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/HostedCompute.php", - "hash": "b12f6a5d2c72a767b6bfd3dedcfaf541" + "hash": "e2e2ac9315feacee77893814e36f8adb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/HostedCompute.php", - "hash": "a28eceb47f8ec3ce50d71a45cade3be6" + "hash": "9216805d15b1d0754472b9a51393e18d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/HostedCompute.php", - "hash": "59347bb36867a9626ea3351fe8aacf7b" + "hash": "912e7df12bcec45155069549f11b1ca4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/HostedCompute.php", - "hash": "9e031cd7ad2ebaa5387da9eb516e1565" + "hash": "32dd81a06ab39d8ad63c4ce1082e64dc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/HostedCompute.php", - "hash": "4b33093339ff863e8d223bb876f713a8" + "hash": "31de88ed4071f8d1de18948f96aa2d4c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Settings\/NetworkConfigurations.php", @@ -31841,6 +31837,10 @@ { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Settings\/NetworkSettings\/NetworkSettingsId.php", "hash": "7c1e1a589225cdc2f3722ce0c8a8ac07" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecurityAdvisoryEpss.php", + "hash": "e5bf9981272bc614c6cda2136f1bc651" } ] }, diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Advisories/GhsaId.php b/clients/GitHub/src/Internal/Hydrator/Operation/Advisories/GhsaId.php index 16f7907f72e..3574e299451 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Advisories/GhsaId.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Advisories/GhsaId.php @@ -10,7 +10,7 @@ use ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree; use ApiClients\Client\GitHub\Schema\GlobalAdvisory; use ApiClients\Client\GitHub\Schema\GlobalAdvisory\Cvss; -use ApiClients\Client\GitHub\Schema\GlobalAdvisory\Epss; +use ApiClients\Client\GitHub\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\GitHub\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($payload), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload), - 'ApiClients\Client\GitHub\Schema\GlobalAdvisory\Epss' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($payload), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -300,17 +300,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Glob 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⚡️GitHub⚡️Schema⚡️Glob if (is_array($value)) { try { $this->hydrationStack[] = 'epss'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($value); } finally { array_pop($this->hydrationStack); } @@ -331,6 +320,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Glob 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⚡️GitHub⚡️Schema⚡️Cvss } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss(array $payload): Epss + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss(array $payload): SecurityAdvisoryEpss { $properties = []; $missingFields = []; @@ -565,17 +565,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Glob after_percentile: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\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\GitHub\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack); } } @@ -678,7 +678,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($object), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object), - 'ApiClients\Client\GitHub\Schema\GlobalAdvisory\Epss' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss($object), + 'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($object), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -890,6 +890,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $cvssSeverities = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($cvssSeverities); after_cvssSeverities: $result['cvss_severities'] = $cvssSeverities; + $epss = $object->epss; + + if ($epss === null) { + goto after_epss; + } + + $epss = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($epss); + after_epss: $result['epss'] = $epss; + $cwes = $object->cwes; if ($cwes === null) { @@ -905,15 +914,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $cwes = $cwesSerializer0->serialize($cwes, $this); after_cwes: $result['cwes'] = $cwes; - $epss = $object->epss; - - if ($epss === null) { - goto after_epss; - } - - $epss = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss($epss); - after_epss: $result['epss'] = $epss; - $credits = $object->credits; if ($credits === null) { @@ -1030,9 +1030,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss(mixed $object): mixed + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss(mixed $object): mixed { - assert($object instanceof Epss); + assert($object instanceof SecurityAdvisoryEpss); $result = []; $percentage = $object->percentage; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Dependabot/Alerts/AlertNumber.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Dependabot/Alerts/AlertNumber.php index 070950f451a..792e3424558 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Dependabot/Alerts/AlertNumber.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Dependabot/Alerts/AlertNumber.php @@ -16,6 +16,7 @@ use ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability; use ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion; use ApiClients\Client\GitHub\Schema\ScimError; +use ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss; use ApiClients\Client\GitHub\Schema\SimpleUser; use ApiClients\Client\GitHub\Schema\ValidationErrorSimple; use EventSauce\ObjectHydrator\IterableList; @@ -61,6 +62,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($payload), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($payload), 'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability($payload), 'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability⚡️FirstPatchedVersion($payload), 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload), @@ -504,6 +506,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Depe 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⚡️GitHub⚡️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⚡️GitHub⚡️Schema⚡️Cvss } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️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\GitHub\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\GitHub\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability(array $payload): DependabotAlertSecurityVulnerability { $properties = []; @@ -1377,6 +1440,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($object), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object), + 'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($object), 'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability($object), 'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability⚡️FirstPatchedVersion($object), 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object), @@ -1627,6 +1691,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $cvssSeverities = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($cvssSeverities); after_cvssSeverities: $result['cvss_severities'] = $cvssSeverities; + $epss = $object->epss; + + if ($epss === null) { + goto after_epss; + } + + $epss = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($epss); + after_epss: $result['epss'] = $epss; + $cwes = $object->cwes; static $cwesSerializer0; @@ -1767,6 +1840,30 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability(mixed $object): mixed { assert($object instanceof DependabotAlertSecurityVulnerability); diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/DependabotAlert.php b/clients/GitHub/src/Internal/Hydrator/WebHook/DependabotAlert.php index 9e2c5d99a04..e2cfb3109df 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/DependabotAlert.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/DependabotAlert.php @@ -21,6 +21,7 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\Permissions; use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; +use ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; use ApiClients\Client\GitHub\Schema\WebhookDependabotAlertAutoDismissed; @@ -74,6 +75,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($payload), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($payload), 'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability($payload), 'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability⚡️FirstPatchedVersion($payload), 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload), @@ -680,6 +682,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Depe 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⚡️GitHub⚡️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⚡️GitHub⚡️Schema⚡️Cvss } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️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\GitHub\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\GitHub\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability(array $payload): DependabotAlertSecurityVulnerability { $properties = []; @@ -5212,6 +5275,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($object), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object), + 'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($object), 'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability($object), 'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability⚡️FirstPatchedVersion($object), 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object), @@ -5524,6 +5588,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $cvssSeverities = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($cvssSeverities); after_cvssSeverities: $result['cvss_severities'] = $cvssSeverities; + $epss = $object->epss; + + if ($epss === null) { + goto after_epss; + } + + $epss = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($epss); + after_epss: $result['epss'] = $epss; + $cwes = $object->cwes; static $cwesSerializer0; @@ -5664,6 +5737,30 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability(mixed $object): mixed { assert($object instanceof DependabotAlertSecurityVulnerability); diff --git a/clients/GitHub/src/Internal/Hydrators.php b/clients/GitHub/src/Internal/Hydrators.php index 36e3c24792d..3a06ed034b2 100644 --- a/clients/GitHub/src/Internal/Hydrators.php +++ b/clients/GitHub/src/Internal/Hydrators.php @@ -764,7 +764,7 @@ public function hydrateObject(string $className, array $payload): object return match ($className) { '\\ApiClients\\Client\\GitHub\\Schema\\Root' => $this->getObjectMapperOperation🌀Root()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\BasicError', '\\ApiClients\\Client\\GitHub\\Schema\\ValidationErrorSimple' => $this->getObjectMapperOperation🌀Advisories()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHub\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHub\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHub\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHub\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHub\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHub\\Schema\\GlobalAdvisory\\Epss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHub\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHub\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHub\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHub\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAdvisoryEpss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Integration', '\\ApiClients\\Client\\GitHub\\Schema\\Integration\\Permissions' => $this->getObjectMapperOperation🌀App()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookConfig' => $this->getObjectMapperOperation🌀App🌀Hook🌀Config()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\ScimError', '\\ApiClients\\Client\\GitHub\\Schema\\ValidationError' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries()->hydrateObject($className, $payload), @@ -1141,7 +1141,7 @@ public function serializeObjectOfType(object $object, string $className): mixed return match ($className) { '\\ApiClients\\Client\\GitHub\\Schema\\Root' => $this->getObjectMapperOperation🌀Root()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\BasicError', '\\ApiClients\\Client\\GitHub\\Schema\\ValidationErrorSimple' => $this->getObjectMapperOperation🌀Advisories()->serializeObject($object), - '\\ApiClients\\Client\\GitHub\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHub\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHub\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHub\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHub\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHub\\Schema\\GlobalAdvisory\\Epss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHub\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHub\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHub\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHub\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAdvisoryEpss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Integration', '\\ApiClients\\Client\\GitHub\\Schema\\Integration\\Permissions' => $this->getObjectMapperOperation🌀App()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookConfig' => $this->getObjectMapperOperation🌀App🌀Hook🌀Config()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\ScimError', '\\ApiClients\\Client\\GitHub\\Schema\\ValidationError' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries()->serializeObject($object), diff --git a/clients/GitHub/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php b/clients/GitHub/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php index 84ccf2579c8..dbd97373333 100644 --- a/clients/GitHub/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php +++ b/clients/GitHub/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\GitHub\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/GitHub/src/Internal/Operator/Dependabot/ListAlertsForOrg.php b/clients/GitHub/src/Internal/Operator/Dependabot/ListAlertsForOrg.php index 53cc6c8eecf..c95ffdaf792 100644 --- a/clients/GitHub/src/Internal/Operator/Dependabot/ListAlertsForOrg.php +++ b/clients/GitHub/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\GitHub\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/GitHub/src/Internal/Operator/Dependabot/ListAlertsForRepo.php b/clients/GitHub/src/Internal/Operator/Dependabot/ListAlertsForRepo.php index 103ad7e4b78..4c0da325f6b 100644 --- a/clients/GitHub/src/Internal/Operator/Dependabot/ListAlertsForRepo.php +++ b/clients/GitHub/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\GitHub\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/GitHub/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php b/clients/GitHub/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php index 7f0a0a344df..964dda980e2 100644 --- a/clients/GitHub/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php +++ b/clients/GitHub/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\GitHub\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/GitHub/src/Internal/Operator/HostedCompute/CreateNetworkConfigurationForOrg.php b/clients/GitHub/src/Internal/Operator/HostedCompute/CreateNetworkConfigurationForOrg.php index b5dfe7695b2..f1cffaf3110 100644 --- a/clients/GitHub/src/Internal/Operator/HostedCompute/CreateNetworkConfigurationForOrg.php +++ b/clients/GitHub/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\GitHub\Internal\Operation\HostedCompute\CreateNetworkConfigurationForOrg($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHub/src/Internal/Operator/HostedCompute/DeleteNetworkConfigurationFromOrg.php b/clients/GitHub/src/Internal/Operator/HostedCompute/DeleteNetworkConfigurationFromOrg.php index 2ccf40287ce..92b7b13d1a9 100644 --- a/clients/GitHub/src/Internal/Operator/HostedCompute/DeleteNetworkConfigurationFromOrg.php +++ b/clients/GitHub/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\GitHub\Internal\Operation\HostedCompute\DeleteNetworkConfigurationFromOrg($org, $networkConfigurationId); diff --git a/clients/GitHub/src/Internal/Operator/HostedCompute/GetNetworkConfigurationForOrg.php b/clients/GitHub/src/Internal/Operator/HostedCompute/GetNetworkConfigurationForOrg.php index 15b1ab681e6..6c0f477d2e9 100644 --- a/clients/GitHub/src/Internal/Operator/HostedCompute/GetNetworkConfigurationForOrg.php +++ b/clients/GitHub/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\GitHub\Internal\Operation\HostedCompute\GetNetworkConfigurationForOrg($this->responseSchemaValidator, $this->hydrator, $org, $networkConfigurationId); diff --git a/clients/GitHub/src/Internal/Operator/HostedCompute/GetNetworkSettingsForOrg.php b/clients/GitHub/src/Internal/Operator/HostedCompute/GetNetworkSettingsForOrg.php index 33557b00d67..dd60b7035c0 100644 --- a/clients/GitHub/src/Internal/Operator/HostedCompute/GetNetworkSettingsForOrg.php +++ b/clients/GitHub/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\GitHub\Internal\Operation\HostedCompute\GetNetworkSettingsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $networkSettingsId); diff --git a/clients/GitHub/src/Internal/Operator/HostedCompute/ListNetworkConfigurationsForOrg.php b/clients/GitHub/src/Internal/Operator/HostedCompute/ListNetworkConfigurationsForOrg.php index 8dc53c4253d..d9cb4396658 100644 --- a/clients/GitHub/src/Internal/Operator/HostedCompute/ListNetworkConfigurationsForOrg.php +++ b/clients/GitHub/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): Ok { $operation = new \ApiClients\Client\GitHub\Internal\Operation\HostedCompute\ListNetworkConfigurationsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/HostedCompute/UpdateNetworkConfigurationForOrg.php b/clients/GitHub/src/Internal/Operator/HostedCompute/UpdateNetworkConfigurationForOrg.php index 9bba02b6bd2..21fd25a5883 100644 --- a/clients/GitHub/src/Internal/Operator/HostedCompute/UpdateNetworkConfigurationForOrg.php +++ b/clients/GitHub/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\GitHub\Internal\Operation\HostedCompute\UpdateNetworkConfigurationForOrg($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $networkConfigurationId); diff --git a/clients/GitHub/src/Internal/Router/Delete/HostedCompute.php b/clients/GitHub/src/Internal/Router/Delete/HostedCompute.php index f1e1a640db0..2034b09cb4a 100644 --- a/clients/GitHub/src/Internal/Router/Delete/HostedCompute.php +++ b/clients/GitHub/src/Internal/Router/Delete/HostedCompute.php @@ -19,6 +19,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return */ public function deleteNetworkConfigurationFromOrg(array $params): WithoutBody { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Delete/Six.php b/clients/GitHub/src/Internal/Router/Delete/Six.php index 7e549b94cc4..36d65a37d94 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Six.php +++ b/clients/GitHub/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): WithoutBody|ActionsHostedRunner|Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|ActionsCacheList|FileCommit { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/Dependabot.php b/clients/GitHub/src/Internal/Router/Get/Dependabot.php index b3f930138c1..a5c4f9f0521 100644 --- a/clients/GitHub/src/Internal/Router/Get/Dependabot.php +++ b/clients/GitHub/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/GitHub/src/Internal/Router/Get/Five.php b/clients/GitHub/src/Internal/Router/Get/Five.php index f95750d599f..e8bb1286727 100644 --- a/clients/GitHub/src/Internal/Router/Get/Five.php +++ b/clients/GitHub/src/Internal/Router/Get/Five.php @@ -52,7 +52,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|Ok|ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|OrgHook|OrgMembership|Migration|OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|OrgPrivateRegistryConfiguration|RepositoryRuleset|\ApiClients\Client\GitHub\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|EmptyObject { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/HostedCompute.php b/clients/GitHub/src/Internal/Router/Get/HostedCompute.php index d318b08e33f..0998c168598 100644 --- a/clients/GitHub/src/Internal/Router/Get/HostedCompute.php +++ b/clients/GitHub/src/Internal/Router/Get/HostedCompute.php @@ -21,6 +21,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return */ public function listNetworkConfigurationsForOrg(array $params): Ok { $arguments = []; @@ -47,6 +48,7 @@ public function listNetworkConfigurationsForOrg(array $params): Ok return $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); } + /** @return */ public function getNetworkConfigurationForOrg(array $params): NetworkConfiguration { $arguments = []; @@ -67,6 +69,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/GitHub/src/Internal/Router/Get/Six.php b/clients/GitHub/src/Internal/Router/Get/Six.php index 11551c23cc8..b7cd2b4936e 100644 --- a/clients/GitHub/src/Internal/Router/Get/Six.php +++ b/clients/GitHub/src/Internal/Router/Get/Six.php @@ -82,7 +82,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable||Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\NetworkConfiguration|Schema\NetworkSettings|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|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|CodeSecurityConfiguration|WithoutBody|BillingUsageReport|ActionsCacheUsageOrgEnterprise|Ok|ActionsHostedRunnerLimits|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok|ActionsHostedRunner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsOrg|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|NetworkConfiguration|NetworkSettings|ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|SecretScanningScanHistory|RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|TeamRepository|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Dependabot.php b/clients/GitHub/src/Internal/Router/List/Dependabot.php index d2e55a410f0..8a06c9b6844 100644 --- a/clients/GitHub/src/Internal/Router/List/Dependabot.php +++ b/clients/GitHub/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/GitHub/src/Internal/Router/List/Six.php b/clients/GitHub/src/Internal/Router/List/Six.php index 8392293978d..15771a2e3fb 100644 --- a/clients/GitHub/src/Internal/Router/List/Six.php +++ b/clients/GitHub/src/Internal/Router/List/Six.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|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 */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Patch/HostedCompute.php b/clients/GitHub/src/Internal/Router/Patch/HostedCompute.php index 7684a34588d..2cd6af38179 100644 --- a/clients/GitHub/src/Internal/Router/Patch/HostedCompute.php +++ b/clients/GitHub/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 = []; diff --git a/clients/GitHub/src/Internal/Router/Patch/Six.php b/clients/GitHub/src/Internal/Router/Patch/Six.php index 00ce9f72483..5c8f038970d 100644 --- a/clients/GitHub/src/Internal/Router/Patch/Six.php +++ b/clients/GitHub/src/Internal/Router/Patch/Six.php @@ -34,7 +34,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\NetworkConfiguration */ public function call(string $call, array $params, array $pathChunks): CodeSecurityConfiguration|WithoutBody|ActionsHostedRunner|RunnerGroupsOrg|WebhookConfig|NetworkConfiguration|CheckRun|CheckSuitePreference|EmptyObject|CodeScanningDefaultSetupUpdateResponse|CommitComment|Hook|Import|RepositoryInvitation|Issue|BasicError|Label|Milestone|PullRequest|Release|RepositoryAdvisory { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Post/Five.php b/clients/GitHub/src/Internal/Router/Post/Five.php index 485deb8d0bd..2a2ee876f01 100644 --- a/clients/GitHub/src/Internal/Router/Post/Five.php +++ b/clients/GitHub/src/Internal/Router/Post/Five.php @@ -46,7 +46,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\NetworkConfiguration */ public function call(string $call, array $params, array $pathChunks): InstallationToken|Authorization|CodeSecurityConfiguration|ActionsHostedRunner|RunnerGroupsOrg|EmptyObject|WithoutBody|NetworkConfiguration|ProjectCard|Json|Created|Autolink|CheckRun|CheckSuite|Codespace|Deployment|\ApiClients\Client\GitHub\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/GitHub/src/Internal/Router/Post/HostedCompute.php b/clients/GitHub/src/Internal/Router/Post/HostedCompute.php index 3f037d12a9c..05ad6568c20 100644 --- a/clients/GitHub/src/Internal/Router/Post/HostedCompute.php +++ b/clients/GitHub/src/Internal/Router/Post/HostedCompute.php @@ -19,6 +19,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return */ public function createNetworkConfigurationForOrg(array $params): NetworkConfiguration { $arguments = []; diff --git a/clients/GitHub/src/Operation/Dependabot.php b/clients/GitHub/src/Operation/Dependabot.php index 158e657d902..356e1708730 100644 --- a/clients/GitHub/src/Operation/Dependabot.php +++ b/clients/GitHub/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/GitHub/src/Operation/HostedCompute.php b/clients/GitHub/src/Operation/HostedCompute.php index 5115f791919..07c9e6cdd05 100644 --- a/clients/GitHub/src/Operation/HostedCompute.php +++ b/clients/GitHub/src/Operation/HostedCompute.php @@ -16,31 +16,37 @@ public function __construct(private Internal\Operators $operators) { } + /** @return */ public function listNetworkConfigurationsForOrg(string $org, int $perPage, int $page): Ok { 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/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index debddd42a3d..71582273155 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -228,7 +228,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}/secret-scanning/alerts') { @@ -940,7 +940,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') { @@ -1556,27 +1556,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'); + 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/{team_slug}/copilot/metrics') { @@ -2720,11 +2720,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/GitHub/src/Schema/DependabotAlert.php b/clients/GitHub/src/Schema/DependabotAlert.php index 1312f03ebc0..e1dda64f89a 100644 --- a/clients/GitHub/src/Schema/DependabotAlert.php +++ b/clients/GitHub/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/GitHub/src/Schema/DependabotAlertSecurityAdvisory.php b/clients/GitHub/src/Schema/DependabotAlertSecurityAdvisory.php index 129ef0b387f..2f714318efa 100644 --- a/clients/GitHub/src/Schema/DependabotAlertSecurityAdvisory.php +++ b/clients/GitHub/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/GitHub/src/Schema/DependabotAlertWithRepository.php b/clients/GitHub/src/Schema/DependabotAlertWithRepository.php index 86a735145d5..eea7036a6ed 100644 --- a/clients/GitHub/src/Schema/DependabotAlertWithRepository.php +++ b/clients/GitHub/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/GitHub/src/Schema/GlobalAdvisory.php b/clients/GitHub/src/Schema/GlobalAdvisory.php index 56f73575942..f6ef0a0e544 100644 --- a/clients/GitHub/src/Schema/GlobalAdvisory.php +++ b/clients/GitHub/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/GitHub/src/Schema/GlobalAdvisory/Epss.php b/clients/GitHub/src/Schema/SecurityAdvisoryEpss.php similarity index 51% rename from clients/GitHub/src/Schema/GlobalAdvisory/Epss.php rename to clients/GitHub/src/Schema/SecurityAdvisoryEpss.php index 6773f1f79bb..3d0adecb058 100644 --- a/clients/GitHub/src/Schema/GlobalAdvisory/Epss.php +++ b/clients/GitHub/src/Schema/SecurityAdvisoryEpss.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\GlobalAdvisory; +namespace ApiClients\Client\GitHub\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/GitHub/src/Schema/WebhookDependabotAlertAutoDismissed.php b/clients/GitHub/src/Schema/WebhookDependabotAlertAutoDismissed.php index 1ed907ddfc1..16792ffabd7 100644 --- a/clients/GitHub/src/Schema/WebhookDependabotAlertAutoDismissed.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookDependabotAlertAutoReopened.php b/clients/GitHub/src/Schema/WebhookDependabotAlertAutoReopened.php index 58855ac1ad4..37435e71be3 100644 --- a/clients/GitHub/src/Schema/WebhookDependabotAlertAutoReopened.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookDependabotAlertCreated.php b/clients/GitHub/src/Schema/WebhookDependabotAlertCreated.php index 0367ec4e84b..b862c6e12dd 100644 --- a/clients/GitHub/src/Schema/WebhookDependabotAlertCreated.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookDependabotAlertDismissed.php b/clients/GitHub/src/Schema/WebhookDependabotAlertDismissed.php index fe817411c62..be1f8a38fb6 100644 --- a/clients/GitHub/src/Schema/WebhookDependabotAlertDismissed.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookDependabotAlertFixed.php b/clients/GitHub/src/Schema/WebhookDependabotAlertFixed.php index f58b879fd08..6e28419a83b 100644 --- a/clients/GitHub/src/Schema/WebhookDependabotAlertFixed.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookDependabotAlertReintroduced.php b/clients/GitHub/src/Schema/WebhookDependabotAlertReintroduced.php index 3685690e572..70480a20369 100644 --- a/clients/GitHub/src/Schema/WebhookDependabotAlertReintroduced.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookDependabotAlertReopened.php b/clients/GitHub/src/Schema/WebhookDependabotAlertReopened.php index 408bf01b093..a0cee9333f0 100644 --- a/clients/GitHub/src/Schema/WebhookDependabotAlertReopened.php +++ b/clients/GitHub/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/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index 67f2b892175..4f3995fc2d4 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -63,7 +63,7 @@ function authHeader(): string assertType('', $client->call('POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach')); assertType('', $client->call('PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories')); -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('Observable', $client->call('GET /enterprises/{enterprise}/secret-scanning/alerts')); assertType('Observable|WithoutBody', $client->call('GET /events')); assertType('Observable|WithoutBody', $client->call('LIST /events')); @@ -241,7 +241,7 @@ function authHeader(): string assertType('Observable', $client->call('LIST /orgs/{org}/copilot/metrics')); assertType('Observable', $client->call('GET /orgs/{org}/copilot/usage')); assertType('Observable', $client->call('LIST /orgs/{org}/copilot/usage')); -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}')); @@ -395,12 +395,12 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/settings/billing/actions')); 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', $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('Observable', $client->call('GET /orgs/{org}/team/{team_slug}/copilot/metrics')); assertType('Observable', $client->call('LIST /orgs/{org}/team/{team_slug}/copilot/metrics')); assertType('Observable', $client->call('GET /orgs/{org}/team/{team_slug}/copilot/usage')); @@ -686,8 +686,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/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 16733d34f81..98675b25350 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -15554,7 +15554,7 @@ paths: operationId: hosted-compute/list-network-configurations-for-org externalDocs: description: API method documentation - url: https://docs.github.com/rest/settings/network-configurations#list-hosted-compute-network-configurations-for-an-organization + url: https://docs.github.com/rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization parameters: - "$ref": "#/components/parameters/org" - "$ref": "#/components/parameters/per-page" @@ -15585,7 +15585,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 @@ -15598,7 +15598,7 @@ paths: operationId: hosted-compute/create-network-configuration-for-org externalDocs: description: API method documentation - url: https://docs.github.com/rest/settings/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization + url: https://docs.github.com/rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization parameters: - "$ref": "#/components/parameters/org" requestBody: @@ -15650,7 +15650,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: settings + category: orgs subcategory: network-configurations "/orgs/{org}/settings/network-configurations/{network_configuration_id}": get: @@ -15664,7 +15664,7 @@ paths: operationId: hosted-compute/get-network-configuration-for-org externalDocs: description: API method documentation - url: https://docs.github.com/rest/settings/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization + url: https://docs.github.com/rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization parameters: - "$ref": "#/components/parameters/org" - "$ref": "#/components/parameters/network-configuration-id" @@ -15684,7 +15684,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 @@ -15697,7 +15697,7 @@ paths: operationId: hosted-compute/update-network-configuration-for-org externalDocs: description: API method documentation - url: https://docs.github.com/rest/settings/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization + url: https://docs.github.com/rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization parameters: - "$ref": "#/components/parameters/org" - "$ref": "#/components/parameters/network-configuration-id" @@ -15747,7 +15747,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 @@ -15760,7 +15760,7 @@ paths: operationId: hosted-compute/delete-network-configuration-from-org externalDocs: description: API method documentation - url: https://docs.github.com/rest/settings/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization + url: https://docs.github.com/rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization parameters: - "$ref": "#/components/parameters/org" - "$ref": "#/components/parameters/network-configuration-id" @@ -15770,7 +15770,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: settings + category: orgs subcategory: network-configurations "/orgs/{org}/settings/network-settings/{network_settings_id}": get: @@ -15784,7 +15784,7 @@ paths: operationId: hosted-compute/get-network-settings-for-org externalDocs: description: API method documentation - url: https://docs.github.com/rest/settings/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization + url: https://docs.github.com/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" @@ -15804,7 +15804,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: settings + category: orgs subcategory: network-configurations "/orgs/{org}/team/{team_slug}/copilot/metrics": get: @@ -67803,6 +67803,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. @@ -68096,6 +68112,8 @@ components: - score cvss_severities: "$ref": "#/components/schemas/cvss-severities" + epss: + "$ref": "#/components/schemas/security-advisory-epss" cwes: type: - array @@ -68113,15 +68131,6 @@ components: required: - cwe_id - name - epss: - type: - - object - - 'null' - properties: - percentage: - type: number - percentile: - type: number credits: type: - array @@ -71229,6 +71238,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. @@ -204828,6 +204839,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 @@ -217945,6 +217959,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 @@ -218131,6 +218148,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