From 04b6ba6edcfbd6cfbb27e9eb8d2866b2d85318aa Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Tue, 23 Jul 2024 17:52:22 +0000 Subject: [PATCH] =?UTF-8?q?[GitHubEnterpriseCloud]=20Update=20to=201.1.4-a?= =?UTF-8?q?a24377344d6471ce1e177feecf11db1=20from=201.1.4-0336551e2d2d8598?= =?UTF-8?q?4cfed5879256ad77=20Detected=20Schema=20changes:=20=0D=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0Dstarting=20work.?= =?UTF-8?q?=20=0D=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0DBui?= =?UTF-8?q?lding=20original=20model=20for=20commit=20d0871b=202024-07-23?= =?UTF-8?q?=2017:27:32=20ERROR=20unable=20to=20open=20the=20rolodex=20file?= =?UTF-8?q?,=20check=20specification=20references=20and=20base=20path=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=E2=94=9C=20file:=20/=5F=5Fw/github-root/github-root/server-?= =?UTF-8?q?statistics-actions.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F?= =?UTF-8?q?=5Fw/github-root/github-root/server-statistics-actions.yaml:=20?= =?UTF-8?q?no=20such=20file=20or=20directory=202024-07-23=2017:27:32=20ERR?= =?UTF-8?q?OR=20unable=20to=20open=20the=20rolodex=20file,=20check=20speci?= =?UTF-8?q?fication=20references=20and=20base=20path=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20fil?= =?UTF-8?q?e:=20/=5F=5Fw/github-root/github-root/server-statistics-package?= =?UTF-8?q?s.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw/github-root/gi?= =?UTF-8?q?thub-root/server-statistics-packages.yaml:=20no=20such=20file?= =?UTF-8?q?=20or=20directory=202024-07-23=2017:27:32=20ERROR=20unable=20to?= =?UTF-8?q?=20open=20the=20rolodex=20file,=20check=20specification=20refer?= =?UTF-8?q?ences=20and=20base=20path=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20error:=20open=20/?= =?UTF-8?q?=5F=5Fw/github-root/github-root/server-statistics-advisory-db.y?= =?UTF-8?q?aml:=20no=20such=20file=20or=20directory=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=94=20fil?= =?UTF-8?q?e:=20/=5F=5Fw/github-root/github-root/server-statistics-advisor?= =?UTF-8?q?y-db.yaml=202024-07-23=2017:27:34=20ERROR=20unable=20to=20open?= =?UTF-8?q?=20the=20rolodex=20file,=20check=20specification=20references?= =?UTF-8?q?=20and=20base=20path=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=E2=94=9C=20file:=20/=5F=5Fw/github-?= =?UTF-8?q?root/github-root/server-statistics-actions.yaml=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=94?= =?UTF-8?q?=20error:=20open=20/=5F=5Fw/github-root/github-root/server-stat?= =?UTF-8?q?istics-actions.yaml:=20no=20such=20file=20or=20directory=202024?= =?UTF-8?q?-07-23=2017:27:34=20ERROR=20unable=20to=20open=20the=20rolodex?= =?UTF-8?q?=20file,=20check=20specification=20references=20and=20base=20pa?= =?UTF-8?q?th=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=E2=94=9C=20file:=20/=5F=5Fw/github-root/github-root/s?= =?UTF-8?q?erver-statistics-packages.yaml=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=94=20error:=20open?= =?UTF-8?q?=20/=5F=5Fw/github-root/github-root/server-statistics-packages.?= =?UTF-8?q?yaml:=20no=20such=20file=20or=20directory=202024-07-23=2017:27:?= =?UTF-8?q?34=20ERROR=20unable=20to=20open=20the=20rolodex=20file,=20check?= =?UTF-8?q?=20specification=20references=20and=20base=20path=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=E2=94=9C=20file:=20/=5F=5Fw/github-root/github-root/server-sta?= =?UTF-8?q?tistics-advisory-db.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F?= =?UTF-8?q?=5Fw/github-root/github-root/server-statistics-advisory-db.yaml?= =?UTF-8?q?:=20no=20such=20file=20or=20directory=20=0D=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=0DERROR:=20component=20'serve?= =?UTF-8?q?r-statistics-actions.yaml'=20does=20not=20exist=20in=20the=20sp?= =?UTF-8?q?ecification=20=0D=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=0DERROR:=20component=20'server-statistics-packages.yaml'?= =?UTF-8?q?=20does=20not=20exist=20in=20the=20specification=20=0D=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0DERROR:=20component?= =?UTF-8?q?=20'server-statistics-advisory-db.yaml'=20does=20not=20exist=20?= =?UTF-8?q?in=20the=20specification=20=0D=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=0DERROR:=20cannot=20resolve=20reference=20`s?= =?UTF-8?q?erver-statistics-actions.yaml`,=20it's=20missing:=20=20[206996:?= =?UTF-8?q?11]=20=0D=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0D?= =?UTF-8?q?ERROR:=20cannot=20resolve=20reference=20`server-statistics-pack?= =?UTF-8?q?ages.yaml`,=20it's=20missing:=20=20[206998:11]=20=0D=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0DERROR:=20cannot=20?= =?UTF-8?q?resolve=20reference=20`server-statistics-advisory-db.yaml`,=20i?= =?UTF-8?q?t's=20missing:=20=20[207000:11]=20=0D=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=0DERROR:=20component=20'server-stat?= =?UTF-8?q?istics-actions.yaml'=20does=20not=20exist=20in=20the=20specific?= =?UTF-8?q?ation=20=0D=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=0DERROR:=20component=20'server-statistics-packages.yaml'=20doe?= =?UTF-8?q?s=20not=20exist=20in=20the=20specification=20=0D=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=0DERROR:=20component=20'se?= =?UTF-8?q?rver-statistics-advisory-db.yaml'=20does=20not=20exist=20in=20t?= =?UTF-8?q?he=20specification=20=0D=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=0DERROR:=20cannot=20resolve=20reference=20`server-?= =?UTF-8?q?statistics-actions.yaml`,=20it's=20missing:=20=20[206994:11]=20?= =?UTF-8?q?=0D=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=0DERROR:?= =?UTF-8?q?=20cannot=20resolve=20reference=20`server-statistics-packages.y?= =?UTF-8?q?aml`,=20it's=20missing:=20=20[206996:11]=20=0D=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=0DERROR:=20cannot=20resolv?= =?UTF-8?q?e=20reference=20`server-statistics-advisory-db.yaml`,=20it's=20?= =?UTF-8?q?missing:=20=20[206998:11]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../etc/openapi-client-generator.state | 18 ++++---- .../CodeSecurity/GetConfigurationsForOrg.php | 2 +- .../src/Internal/Router/Get/CodeSecurity.php | 2 +- .../src/Internal/Router/Get/Five.php | 2 +- .../src/Operation/CodeSecurity.php | 2 +- .../src/PHPStan/ClientCallReturnTypes.php | 2 +- .../CodeSecurityConfigurationRepositories.php | 6 ++- .../tests/Types/ClientCallReturnTypes.php | 2 +- .../GitHubEnterpriseCloud/current.spec.yaml | 46 ++++++++++--------- 9 files changed, 43 insertions(+), 39 deletions(-) diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index b9291ea151f..da4f2631472 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "0336551e2d2d85984cfed5879256ad77", + "specHash": "aa24377344d6471ce1e177feecf11db1", "generatedFiles": { "files": [ { @@ -5980,7 +5980,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "96b31d4c40906b02470147e884b42c1d" + "hash": "2c9fe4d18721a8d690513913bccff5f6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php", @@ -26656,7 +26656,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "99927f0e128d4c6b795535f65647e2b1" + "hash": "e4ece915c3acb049dcaeb3656b2fcd3c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", @@ -29872,11 +29872,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "aaea273be42848e493de9ebe038a1125" + "hash": "49546035c0a7670ec430f965eafae199" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "e0aec114ac554ca1977de1d0664c7d30" + "hash": "040c8ce72f7c03b1243c63c2b5fa4b6f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -32004,7 +32004,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeSecurity\/GetConfigurationsForOrg.php", - "hash": "a97708e1cdf7f307b45dce0f264503ac" + "hash": "e93ce4ac0870638894dee921b22c0cb3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeSecurity\/GetConfigurationsForOrgTest.php", @@ -32116,7 +32116,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfigurationRepositories.php", - "hash": "e3e3b7f123884a547783634baa2efaa6" + "hash": "f22f1d882dc584c3cbd6d5a83fa0dcb3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/CodeSecurity\/AttachConfiguration\/Response\/ApplicationJson\/Accepted.php", @@ -32148,7 +32148,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeSecurity.php", - "hash": "bfdfd1fd7882be2f4032dea8964cd9be" + "hash": "8cdb43384293a93b36ca25b86d0ea079" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/CodeSecurity.php", @@ -32168,7 +32168,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php", - "hash": "42230af5a24a2c3e6585330c0c65d504" + "hash": "ae5e71a9ec99c1095424a14d080d4fd4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php", diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeSecurity/GetConfigurationsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeSecurity/GetConfigurationsForOrg.php index 892d2923c6c..85980d47a6f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeSecurity/GetConfigurationsForOrg.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeSecurity/GetConfigurationsForOrg.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $before, string $after, string $targetType = 'all', int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeSecurity\GetConfigurationsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $before, $after, $targetType, $perPage); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeSecurity.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeSecurity.php index 65fb061963f..10f08b56d92 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeSecurity.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeSecurity.php @@ -21,7 +21,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable */ + /** @return Observable */ public function getConfigurationsForOrg(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php index ae768b27938..723c74e12e5 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php @@ -54,7 +54,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|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 */ public function call(string $call, array $params, array $pathChunks): HookDelivery|ActionsEnterprisePermissions|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrganizationRole|RepositoryRuleset|GroupMapping|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|EmptyObject { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Operation/CodeSecurity.php b/clients/GitHubEnterpriseCloud/src/Operation/CodeSecurity.php index 3a6ef1707f9..acbf20d2daf 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/CodeSecurity.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/CodeSecurity.php @@ -17,7 +17,7 @@ public function __construct(private Internal\Operators $operators) { } - /** @return iterable */ + /** @return Observable */ public function getConfigurationsForOrg(string $org, string $before, string $after, string $targetType, int $perPage): iterable { return $this->operators->codeSecurity👷GetConfigurationsForOrg()->call($org, $before, $after, $targetType, $perPage); diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index aec126578f0..5a366c4e25e 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -988,7 +988,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/code-security/configurations') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'POST /orgs/{org}/code-security/configurations') { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/CodeSecurityConfigurationRepositories.php b/clients/GitHubEnterpriseCloud/src/Schema/CodeSecurityConfigurationRepositories.php index 4d2c72d660e..8e42734c60c 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/CodeSecurityConfigurationRepositories.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/CodeSecurityConfigurationRepositories.php @@ -16,9 +16,11 @@ "attached", "attaching", "detached", + "removed", "enforced", "failed", - "updating" + "updating", + "removed_by_enterprise" ], "type": "string", "description": "The attachment status of the code security configuration on the repository." @@ -574,7 +576,7 @@ public const SCHEMA_TITLE = ''; public const SCHEMA_DESCRIPTION = 'Repositories associated with a code security configuration and attachment status'; public const SCHEMA_EXAMPLE_DATA = '{ - "status": "updating", + "status": "removed_by_enterprise", "repository": { "id": 1296269, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index 72bb4754172..48a439f28ed 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -253,7 +253,7 @@ function authHeader(): string assertType('', $client->call('DELETE /orgs/{org}/blocks/{username}')); assertType('Observable', $client->call('GET /orgs/{org}/code-scanning/alerts')); assertType('Observable', $client->call('LIST /orgs/{org}/code-scanning/alerts')); -assertType('iterable', $client->call('GET /orgs/{org}/code-security/configurations')); +assertType('Observable', $client->call('GET /orgs/{org}/code-security/configurations')); assertType('', $client->call('POST /orgs/{org}/code-security/configurations')); assertType('Observable|WithoutBody', $client->call('GET /orgs/{org}/code-security/configurations/defaults')); assertType('', $client->call('DELETE /orgs/{org}/code-security/configurations/detach')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 2637bb34b7e..edc2fa6250a 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -2554,7 +2554,7 @@ paths: '422': "$ref": "#/components/responses/validation_failed_simple" x-github: - githubCloudOnly: false + githubCloudOnly: true enabledForGitHubApps: false category: actions subcategory: self-hosted-runners @@ -3584,7 +3584,7 @@ paths: '503': "$ref": "#/components/responses/service_unavailable" x-github: - githubCloudOnly: false + githubCloudOnly: true enabledForGitHubApps: false category: enterprise-admin subcategory: billing @@ -3635,7 +3635,7 @@ paths: '503': "$ref": "#/components/responses/service_unavailable" x-github: - githubCloudOnly: false + githubCloudOnly: true enabledForGitHubApps: false category: enterprise-admin subcategory: billing @@ -3686,7 +3686,7 @@ paths: '503': "$ref": "#/components/responses/service_unavailable" x-github: - githubCloudOnly: false + githubCloudOnly: true enabledForGitHubApps: false category: enterprise-admin subcategory: billing @@ -3791,7 +3791,7 @@ paths: '503': "$ref": "#/components/responses/service_unavailable" x-github: - githubCloudOnly: false + githubCloudOnly: true enabledForGitHubApps: false category: enterprise-admin subcategory: billing @@ -13732,7 +13732,7 @@ paths: '422': "$ref": "#/components/responses/validation_failed" x-github: - githubCloudOnly: false + githubCloudOnly: true enabledForGitHubApps: true category: orgs subcategory: organization-roles @@ -13876,7 +13876,7 @@ paths: '409': "$ref": "#/components/responses/conflict" x-github: - githubCloudOnly: false + githubCloudOnly: true enabledForGitHubApps: true category: orgs subcategory: organization-roles @@ -14173,7 +14173,7 @@ paths: '404': "$ref": "#/components/responses/not_found" x-github: - githubCloudOnly: false + githubCloudOnly: true enabledForGitHubApps: true category: orgs subcategory: organization-roles @@ -14201,7 +14201,7 @@ paths: '204': description: Response x-github: - githubCloudOnly: false + githubCloudOnly: true enabledForGitHubApps: true category: orgs subcategory: organization-roles @@ -18776,7 +18776,7 @@ paths: summary: Enable or disable a security feature for an organization description: |- > [!WARNING] - > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/). + > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/). Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." @@ -44256,7 +44256,7 @@ paths: "/scim/v2/organizations/{org}/Users/{scim_user_id}": get: summary: Get SCIM provisioning information for a user - description: '' + description: Gets SCIM provisioning information for a user. tags: - scim operationId: scim/get-provisioning-information-for-user @@ -44537,7 +44537,7 @@ paths: subcategory: scim delete: summary: Delete a SCIM user from an organization - description: '' + description: Deletes a SCIM user from an organization. tags: - scim operationId: scim/delete-user-from-org @@ -53136,7 +53136,7 @@ webhooks: description: Return a 200 status to indicate that the data was received successfully x-github: - githubCloudOnly: false + githubCloudOnly: true category: webhooks subcategory: bypass_request_push_ruleset supported-webhook-types: @@ -53204,7 +53204,7 @@ webhooks: description: Return a 200 status to indicate that the data was received successfully x-github: - githubCloudOnly: false + githubCloudOnly: true category: webhooks subcategory: bypass_request_push_ruleset supported-webhook-types: @@ -53272,7 +53272,7 @@ webhooks: description: Return a 200 status to indicate that the data was received successfully x-github: - githubCloudOnly: false + githubCloudOnly: true category: webhooks subcategory: bypass_request_push_ruleset supported-webhook-types: @@ -53340,7 +53340,7 @@ webhooks: description: Return a 200 status to indicate that the data was received successfully x-github: - githubCloudOnly: false + githubCloudOnly: true category: webhooks subcategory: bypass_request_push_ruleset supported-webhook-types: @@ -53409,7 +53409,7 @@ webhooks: description: Return a 200 status to indicate that the data was received successfully x-github: - githubCloudOnly: false + githubCloudOnly: true category: webhooks subcategory: bypass_request_push_ruleset supported-webhook-types: @@ -53477,7 +53477,7 @@ webhooks: description: Return a 200 status to indicate that the data was received successfully x-github: - githubCloudOnly: false + githubCloudOnly: true category: webhooks subcategory: bypass_request_secret_scanning supported-webhook-types: @@ -53545,7 +53545,7 @@ webhooks: description: Return a 200 status to indicate that the data was received successfully x-github: - githubCloudOnly: false + githubCloudOnly: true category: webhooks subcategory: bypass_request_secret_scanning supported-webhook-types: @@ -53613,7 +53613,7 @@ webhooks: description: Return a 200 status to indicate that the data was received successfully x-github: - githubCloudOnly: false + githubCloudOnly: true category: webhooks subcategory: bypass_request_secret_scanning supported-webhook-types: @@ -53681,7 +53681,7 @@ webhooks: description: Return a 200 status to indicate that the data was received successfully x-github: - githubCloudOnly: false + githubCloudOnly: true category: webhooks subcategory: bypass_request_secret_scanning supported-webhook-types: @@ -53750,7 +53750,7 @@ webhooks: description: Return a 200 status to indicate that the data was received successfully x-github: - githubCloudOnly: false + githubCloudOnly: true category: webhooks subcategory: bypass_request_secret_scanning supported-webhook-types: @@ -78307,9 +78307,11 @@ components: - attached - attaching - detached + - removed - enforced - failed - updating + - removed_by_enterprise repository: "$ref": "#/components/schemas/simple-repository" codespace-machine: