diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 38fad347abb..79a747a7685 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "ffc57be6cdf0e66d7c933d6f52367abe", + "specHash": "c1e4d4617fb30b28dd9ff95dbcd32f2e", "generatedFiles": { "files": [ { @@ -892,7 +892,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningDefaultSetup.php", - "hash": "0546b04d3773a8123bf23476a8ed0c89" + "hash": "ea900565885622cc09536a142bdcc262" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningDefaultSetupUpdate.php", @@ -5572,7 +5572,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeScanning.php", - "hash": "4aa88932e138f5023410872812484163" + "hash": "8afe9ac6d0e3ea7cf988c7adcd3de78f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Codespaces.php", @@ -24848,11 +24848,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "4c11292ac64dd5b6086491893e29b16e" + "hash": "18a08639d99cec6fb1771a5fd26fd9e4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "ce887ab0baf56f722fffea5da3d12431" + "hash": "6a5aa32846ccb2807283067d8708433c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", @@ -24876,7 +24876,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Four.php", - "hash": "44a2f2604dba7b832ab639ac9add5e66" + "hash": "c0a4568cdfce7d871a323f6a36b3b3f7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php", @@ -24920,7 +24920,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Five.php", - "hash": "fecce7ab0c6c4136a88dbe70a9a3cdd9" + "hash": "02b0af08f64abd5efe152b0f06fc7e6d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Six.php", @@ -24984,7 +24984,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Five.php", - "hash": "81e3794494f7a2c1f4f28c28986638f2" + "hash": "c41bc57f877914abf6e513e7ee9a28ee" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Three.php", @@ -26020,7 +26020,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/DefaultSetup.php", - "hash": "d9bb025213c7bdd91bc512fedcab9815" + "hash": "29cbf48f13fbedb980e03658ab0951da" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Sarifs.php", @@ -27632,11 +27632,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "4754372b8a074fc2d1a26d2df02d4e0d" + "hash": "71c82692707697c48cd324651981430e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "945c5080f48095c470c8e61c7a003f84" + "hash": "397be97be6943bb78495777ba0235cc1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -29612,7 +29612,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php", - "hash": "42492ba185dd1ddb9f5101b31f41a904" + "hash": "d37df36897036d1eec5737dbf213b1ee" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php", @@ -31360,7 +31360,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/PrivateRegistries\/ListOrgPrivateRegistries.php", - "hash": "6de62d83e37bbb20ed0912361c4b30b4" + "hash": "7dd3f547126b090eeff93e527f4ec3d1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/PrivateRegistries\/ListOrgPrivateRegistriesTest.php", @@ -31372,7 +31372,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/PrivateRegistries\/CreateOrgPrivateRegistry.php", - "hash": "3f183439ee0b2dc9f13cd3acda759d3f" + "hash": "d93f1e64c7ba4d300c3fb3a3b88ca16d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/PrivateRegistries\/CreateOrgPrivateRegistryTest.php", @@ -31384,7 +31384,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/PrivateRegistries\/GetOrgPublicKey.php", - "hash": "6c4d966cf2c5d8a4f1b8dc2c65b1e839" + "hash": "00000e0e712155efef700b280c282f6f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/PrivateRegistries\/GetOrgPublicKeyTest.php", @@ -31396,7 +31396,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/PrivateRegistries\/GetOrgPrivateRegistry.php", - "hash": "d1564d06e5dfa9a266b13e2dcea654d1" + "hash": "e633e98e80d7e035faf82fe6c7add479" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/PrivateRegistries\/GetOrgPrivateRegistryTest.php", @@ -31408,7 +31408,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/PrivateRegistries\/DeleteOrgPrivateRegistry.php", - "hash": "b5b2b026a0a1e95bea3dd98a40410098" + "hash": "1509d01986a9c7e2d9e1eb2463a2c250" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/PrivateRegistries\/DeleteOrgPrivateRegistryTest.php", @@ -31420,7 +31420,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/PrivateRegistries\/UpdateOrgPrivateRegistry.php", - "hash": "3f5ae9bfc1314bc94af5b9d34c62a247" + "hash": "39cc994d763f207bc82397078b5d5fac" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/PrivateRegistries\/UpdateOrgPrivateRegistryTest.php", @@ -31452,23 +31452,23 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/PrivateRegistries.php", - "hash": "83282fa4c03ddbd1a0820c203de4b362" + "hash": "2fedab18d51cc0e1b713dcc52560fecf" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/PrivateRegistries.php", - "hash": "2c13686ea99be7a399c031e498d3fb99" + "hash": "0a7ef41175fa1d757608f16424ef5cc1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/PrivateRegistries.php", - "hash": "a7081c0b472ab74018984449f38402c2" + "hash": "1b38420518eccf1d8e5e2323603ca747" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/PrivateRegistries.php", - "hash": "1b5ec8975f19267bbf86578a5096fc75" + "hash": "02c5c81c79f73cf0e857644e84c7004f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/PrivateRegistries.php", - "hash": "3e8df99a3c7577f5baec7c1bd4607149" + "hash": "8eb1b85a46ebf692eac4887162044dce" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/PrivateRegistries.php", diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/DefaultSetup.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/DefaultSetup.php index e58df6d4a59..104deaa1bff 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/DefaultSetup.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/DefaultSetup.php @@ -76,6 +76,28 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Code after_languages: + $value = $payload['runner_type'] ?? null; + + if ($value === null) { + $properties['runnerType'] = null; + goto after_runnerType; + } + + $properties['runnerType'] = $value; + + after_runnerType: + + $value = $payload['runner_label'] ?? null; + + if ($value === null) { + $properties['runnerLabel'] = null; + goto after_runnerLabel; + } + + $properties['runnerLabel'] = $value; + + after_runnerLabel: + $value = $payload['query_suite'] ?? null; if ($value === null) { @@ -404,6 +426,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $languages = $languagesSerializer0->serialize($languages, $this); after_languages: $result['languages'] = $languages; + $runnerType = $object->runnerType; + + if ($runnerType === null) { + goto after_runnerType; + } + + after_runnerType: $result['runner_type'] = $runnerType; + + $runnerLabel = $object->runnerLabel; + + if ($runnerLabel === null) { + goto after_runnerLabel; + } + + after_runnerLabel: $result['runner_label'] = $runnerLabel; + $querySuite = $object->querySuite; if ($querySuite === null) { diff --git a/clients/GitHub/src/Internal/Operator/PrivateRegistries/CreateOrgPrivateRegistry.php b/clients/GitHub/src/Internal/Operator/PrivateRegistries/CreateOrgPrivateRegistry.php index d7403f5e455..8f5ff41f179 100644 --- a/clients/GitHub/src/Internal/Operator/PrivateRegistries/CreateOrgPrivateRegistry.php +++ b/clients/GitHub/src/Internal/Operator/PrivateRegistries/CreateOrgPrivateRegistry.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, array $params): OrgPrivateRegistryConfigurationWithSelectedRepositories { $operation = new \ApiClients\Client\GitHub\Internal\Operation\PrivateRegistries\CreateOrgPrivateRegistry($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHub/src/Internal/Operator/PrivateRegistries/DeleteOrgPrivateRegistry.php b/clients/GitHub/src/Internal/Operator/PrivateRegistries/DeleteOrgPrivateRegistry.php index b5761f8df33..d5cea22284a 100644 --- a/clients/GitHub/src/Internal/Operator/PrivateRegistries/DeleteOrgPrivateRegistry.php +++ b/clients/GitHub/src/Internal/Operator/PrivateRegistries/DeleteOrgPrivateRegistry.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, string $secretName): WithoutBody { $operation = new \ApiClients\Client\GitHub\Internal\Operation\PrivateRegistries\DeleteOrgPrivateRegistry($this->responseSchemaValidator, $this->hydrator, $org, $secretName); diff --git a/clients/GitHub/src/Internal/Operator/PrivateRegistries/GetOrgPrivateRegistry.php b/clients/GitHub/src/Internal/Operator/PrivateRegistries/GetOrgPrivateRegistry.php index 026dad3d49c..eba302128fa 100644 --- a/clients/GitHub/src/Internal/Operator/PrivateRegistries/GetOrgPrivateRegistry.php +++ b/clients/GitHub/src/Internal/Operator/PrivateRegistries/GetOrgPrivateRegistry.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, string $secretName): OrgPrivateRegistryConfiguration { $operation = new \ApiClients\Client\GitHub\Internal\Operation\PrivateRegistries\GetOrgPrivateRegistry($this->responseSchemaValidator, $this->hydrator, $org, $secretName); diff --git a/clients/GitHub/src/Internal/Operator/PrivateRegistries/GetOrgPublicKey.php b/clients/GitHub/src/Internal/Operator/PrivateRegistries/GetOrgPublicKey.php index 6c85df8ac51..197675dddb3 100644 --- a/clients/GitHub/src/Internal/Operator/PrivateRegistries/GetOrgPublicKey.php +++ b/clients/GitHub/src/Internal/Operator/PrivateRegistries/GetOrgPublicKey.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org): Ok { $operation = new \ApiClients\Client\GitHub\Internal\Operation\PrivateRegistries\GetOrgPublicKey($this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHub/src/Internal/Operator/PrivateRegistries/ListOrgPrivateRegistries.php b/clients/GitHub/src/Internal/Operator/PrivateRegistries/ListOrgPrivateRegistries.php index 09a928e0387..6a040c6946a 100644 --- a/clients/GitHub/src/Internal/Operator/PrivateRegistries/ListOrgPrivateRegistries.php +++ b/clients/GitHub/src/Internal/Operator/PrivateRegistries/ListOrgPrivateRegistries.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\PrivateRegistries\ListOrgPrivateRegistries($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/PrivateRegistries/UpdateOrgPrivateRegistry.php b/clients/GitHub/src/Internal/Operator/PrivateRegistries/UpdateOrgPrivateRegistry.php index e3d867a296c..0340c1955e2 100644 --- a/clients/GitHub/src/Internal/Operator/PrivateRegistries/UpdateOrgPrivateRegistry.php +++ b/clients/GitHub/src/Internal/Operator/PrivateRegistries/UpdateOrgPrivateRegistry.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, string $secretName, array $params): WithoutBody { $operation = new \ApiClients\Client\GitHub\Internal\Operation\PrivateRegistries\UpdateOrgPrivateRegistry($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $secretName); diff --git a/clients/GitHub/src/Internal/Router/Delete/Five.php b/clients/GitHub/src/Internal/Router/Delete/Five.php index a97d1859604..e33fb29880c 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Five.php +++ b/clients/GitHub/src/Internal/Router/Delete/Five.php @@ -14,7 +14,6 @@ public function __construct(private Routers $routers) { } - /** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */ public function call(string $call, array $params, array $pathChunks): WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Delete/PrivateRegistries.php b/clients/GitHub/src/Internal/Router/Delete/PrivateRegistries.php index 3dd44bf809d..a02c5385408 100644 --- a/clients/GitHub/src/Internal/Router/Delete/PrivateRegistries.php +++ b/clients/GitHub/src/Internal/Router/Delete/PrivateRegistries.php @@ -19,6 +19,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return */ public function deleteOrgPrivateRegistry(array $params): WithoutBody { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Five.php b/clients/GitHub/src/Internal/Router/Get/Five.php index 896608591c4..f721a92e4b4 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|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|Schema\OrgPrivateRegistryConfiguration|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|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|ActionsOrganizationPermissions|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|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/Four.php b/clients/GitHub/src/Internal/Router/Get/Four.php index e1b74d05a06..d71ce945fa2 100644 --- a/clients/GitHub/src/Internal/Router/Get/Four.php +++ b/clients/GitHub/src/Internal/Router/Get/Four.php @@ -34,7 +34,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): WebhookConfig|iterable|Installation|WithoutBody|GistSimple|GitignoreTemplate|MarketplacePurchase|Thread|Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|InteractionLimitResponse|One|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|Codespace|GpgKey|Key|Migration|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/PrivateRegistries.php b/clients/GitHub/src/Internal/Router/Get/PrivateRegistries.php index a5b4eca9e19..bb93fc44d12 100644 --- a/clients/GitHub/src/Internal/Router/Get/PrivateRegistries.php +++ b/clients/GitHub/src/Internal/Router/Get/PrivateRegistries.php @@ -20,6 +20,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return */ public function listOrgPrivateRegistries(array $params): Ok { $arguments = []; @@ -46,6 +47,7 @@ public function listOrgPrivateRegistries(array $params): Ok return $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); } + /** @return */ public function getOrgPublicKey(array $params): \ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok { $arguments = []; @@ -60,6 +62,7 @@ public function getOrgPublicKey(array $params): \ApiClients\Client\GitHub\Schema return $operator->call($arguments['org']); } + /** @return */ public function getOrgPrivateRegistry(array $params): OrgPrivateRegistryConfiguration { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Patch/Five.php b/clients/GitHub/src/Internal/Router/Patch/Five.php index 6b426df0252..0c03fcb4b6d 100644 --- a/clients/GitHub/src/Internal/Router/Patch/Five.php +++ b/clients/GitHub/src/Internal/Router/Patch/Five.php @@ -21,7 +21,7 @@ public function __construct(private Routers $routers) { } - /** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable */ + /** @return |Observable */ public function call(string $call, array $params, array $pathChunks): GistComment|OrgHook|WithoutBody|iterable|TeamFull|ProjectCard|Import|TeamDiscussion|OrgMembership { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Patch/PrivateRegistries.php b/clients/GitHub/src/Internal/Router/Patch/PrivateRegistries.php index b3ca29ea1e4..786927ee7e3 100644 --- a/clients/GitHub/src/Internal/Router/Patch/PrivateRegistries.php +++ b/clients/GitHub/src/Internal/Router/Patch/PrivateRegistries.php @@ -19,6 +19,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return */ public function updateOrgPrivateRegistry(array $params): WithoutBody { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Post/Four.php b/clients/GitHub/src/Internal/Router/Post/Four.php index c1f1f7c3c3d..cca2723a7a6 100644 --- a/clients/GitHub/src/Internal/Router/Post/Four.php +++ b/clients/GitHub/src/Internal/Router/Post/Four.php @@ -29,7 +29,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories */ public function call(string $call, array $params, array $pathChunks): Integration|Authorization|GistComment|WithoutBody|BaseGist|OrgHook|OrganizationInvitation|Migration|Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|OrgPrivateRegistryConfigurationWithSelectedRepositories|Project|FullRepository|RepositoryRuleset|TeamFull|ProjectColumn|TeamDiscussion { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Post/PrivateRegistries.php b/clients/GitHub/src/Internal/Router/Post/PrivateRegistries.php index 34a75a6e6d9..d127d61523e 100644 --- a/clients/GitHub/src/Internal/Router/Post/PrivateRegistries.php +++ b/clients/GitHub/src/Internal/Router/Post/PrivateRegistries.php @@ -19,6 +19,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return */ public function createOrgPrivateRegistry(array $params): OrgPrivateRegistryConfigurationWithSelectedRepositories { $arguments = []; diff --git a/clients/GitHub/src/Operation/PrivateRegistries.php b/clients/GitHub/src/Operation/PrivateRegistries.php index 24ea3342f7e..9709f8f1794 100644 --- a/clients/GitHub/src/Operation/PrivateRegistries.php +++ b/clients/GitHub/src/Operation/PrivateRegistries.php @@ -16,31 +16,37 @@ public function __construct(private Internal\Operators $operators) { } + /** @return */ public function listOrgPrivateRegistries(string $org, int $perPage, int $page): Ok { return $this->operators->privateRegistries👷ListOrgPrivateRegistries()->call($org, $perPage, $page); } + /** @return */ public function createOrgPrivateRegistry(string $org, array $params): OrgPrivateRegistryConfigurationWithSelectedRepositories { return $this->operators->privateRegistries👷CreateOrgPrivateRegistry()->call($org, $params); } + /** @return */ public function getOrgPublicKey(string $org): \ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok { return $this->operators->privateRegistries👷GetOrgPublicKey()->call($org); } + /** @return */ public function getOrgPrivateRegistry(string $org, string $secretName): OrgPrivateRegistryConfiguration { return $this->operators->privateRegistries👷GetOrgPrivateRegistry()->call($org, $secretName); } + /** @return */ public function deleteOrgPrivateRegistry(string $org, string $secretName): WithoutBody { return $this->operators->privateRegistries👷DeleteOrgPrivateRegistry()->call($org, $secretName); } + /** @return */ public function updateOrgPrivateRegistry(string $org, string $secretName, array $params): WithoutBody { return $this->operators->privateRegistries👷UpdateOrgPrivateRegistry()->call($org, $secretName, $params); diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 1945e4b4635..23ec42e6b5c 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -1340,27 +1340,27 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/private-registries') { - return $this->typeResolver->resolve('Schema\\Operations\\PrivateRegistries\\ListOrgPrivateRegistries\\Response\\ApplicationJson\\Ok'); + return $this->typeResolver->resolve(''); } if ($call === 'POST /orgs/{org}/private-registries') { - return $this->typeResolver->resolve('Schema\\OrgPrivateRegistryConfigurationWithSelectedRepositories'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /orgs/{org}/private-registries/public-key') { - return $this->typeResolver->resolve('Schema\\Operations\\PrivateRegistries\\GetOrgPublicKey\\Response\\ApplicationJson\\Ok'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /orgs/{org}/private-registries/{secret_name}') { - return $this->typeResolver->resolve('Schema\\OrgPrivateRegistryConfiguration'); + return $this->typeResolver->resolve(''); } if ($call === 'DELETE /orgs/{org}/private-registries/{secret_name}') { - return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'PATCH /orgs/{org}/private-registries/{secret_name}') { - return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /orgs/{org}/projects') { diff --git a/clients/GitHub/src/Schema/CodeScanningDefaultSetup.php b/clients/GitHub/src/Schema/CodeScanningDefaultSetup.php index 96bfc3e2fff..92964ed1e23 100644 --- a/clients/GitHub/src/Schema/CodeScanningDefaultSetup.php +++ b/clients/GitHub/src/Schema/CodeScanningDefaultSetup.php @@ -39,6 +39,28 @@ }, "description": "Languages to be analyzed." }, + "runner_type": { + "enum": [ + "standard", + "labeled", + null + ], + "type": [ + "string", + "null" + ], + "description": "Runner type to be used." + }, + "runner_label": { + "type": [ + "string", + "null" + ], + "description": "Runner label to be used if the runner type is labeled.", + "examples": [ + "code-scanning" + ] + }, "query_suite": { "enum": [ "default", @@ -80,6 +102,8 @@ "generated", "generated" ], + "runner_type": "standard", + "runner_label": "code-scanning", "query_suite": "default", "updated_at": "2023-12-06T14:20:20.000Z", "schedule": "weekly" @@ -88,11 +112,15 @@ /** * state: Code scanning default setup has been configured or not. * languages: Languages to be analyzed. + * runnerType: Runner type to be used. + * runnerLabel: Runner label to be used if the runner type is labeled. * querySuite: CodeQL query suite to be used. * updatedAt: Timestamp of latest configuration update. * schedule: The frequency of the periodic analysis. */ - public function __construct(public string|null $state, public array|null $languages, #[MapFrom('query_suite')] + public function __construct(public string|null $state, public array|null $languages, #[MapFrom('runner_type')] + public string|null $runnerType, #[MapFrom('runner_label')] + public string|null $runnerLabel, #[MapFrom('query_suite')] public string|null $querySuite, #[MapFrom('updated_at')] public string|null $updatedAt, public string|null $schedule,) { diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index 6c62815fa42..95d87b8ee23 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -341,12 +341,12 @@ function authHeader(): string assertType('', $client->call('POST /orgs/{org}/personal-access-tokens/{pat_id}')); assertType('Observable', $client->call('GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories')); assertType('Observable', $client->call('LIST /orgs/{org}/personal-access-tokens/{pat_id}/repositories')); -assertType('Schema\\Operations\\PrivateRegistries\\ListOrgPrivateRegistries\\Response\\ApplicationJson\\Ok', $client->call('GET /orgs/{org}/private-registries')); -assertType('Schema\\OrgPrivateRegistryConfigurationWithSelectedRepositories', $client->call('POST /orgs/{org}/private-registries')); -assertType('Schema\\Operations\\PrivateRegistries\\GetOrgPublicKey\\Response\\ApplicationJson\\Ok', $client->call('GET /orgs/{org}/private-registries/public-key')); -assertType('Schema\\OrgPrivateRegistryConfiguration', $client->call('GET /orgs/{org}/private-registries/{secret_name}')); -assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /orgs/{org}/private-registries/{secret_name}')); -assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('PATCH /orgs/{org}/private-registries/{secret_name}')); +assertType('', $client->call('GET /orgs/{org}/private-registries')); +assertType('', $client->call('POST /orgs/{org}/private-registries')); +assertType('', $client->call('GET /orgs/{org}/private-registries/public-key')); +assertType('', $client->call('GET /orgs/{org}/private-registries/{secret_name}')); +assertType('', $client->call('DELETE /orgs/{org}/private-registries/{secret_name}')); +assertType('', $client->call('PATCH /orgs/{org}/private-registries/{secret_name}')); assertType('Observable', $client->call('GET /orgs/{org}/projects')); assertType('Observable', $client->call('LIST /orgs/{org}/projects')); assertType('', $client->call('POST /orgs/{org}/projects')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index e494f128891..3d61a79a5d8 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -83755,6 +83755,22 @@ components: - ruby - typescript - swift + runner_type: + description: Runner type to be used. + type: + - string + - 'null' + enum: + - standard + - labeled + - + runner_label: + description: Runner label to be used if the runner type is labeled. + type: + - string + - 'null' + examples: + - code-scanning query_suite: description: CodeQL query suite to be used. type: string