diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index f03355fb67a..b36df6fe128 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "f7468d269476e7c0c11c8b67322a69a1", + "specHash": "b1232502b094b2cf854385b7323bd958", "generatedFiles": { "files": [ { @@ -5564,7 +5564,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php", - "hash": "ee82d3b058b82ee9d387cfbe1d78d52e" + "hash": "b93ce2668841057cad69b0b0aa4541f2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Oidc.php", @@ -5600,7 +5600,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php", - "hash": "109c702326dc8aca867d2bb5df05cd70" + "hash": "bd76e67580f50aeab0ee75c4756b986a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Teams.php", @@ -13304,7 +13304,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GenerateRunnerJitconfigForOrg.php", - "hash": "e882e339f1a4e5dbbd5e3a2186bbf27f" + "hash": "dda35c1df25aa178dd350dd32c8bc725" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GenerateRunnerJitconfigForOrgTest.php", @@ -16304,7 +16304,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GenerateRunnerJitconfigForRepo.php", - "hash": "51f95c068dfc5397d0caad39ad9c69c2" + "hash": "dd32db3e9844f32fe7138e0844417409" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GenerateRunnerJitconfigForRepoTest.php", @@ -24472,7 +24472,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Actions.php", - "hash": "600053290882abe489d86c6c74f32291" + "hash": "c29bf069848970b6bf2aa7a3bad4ea13" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Codespaces.php", @@ -24876,7 +24876,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php", - "hash": "c1a0b296bfca651a7e4126fed2d81307" + "hash": "9d52e88c5af6aa5a666a418c7149880a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Five.php", @@ -24892,7 +24892,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Seven.php", - "hash": "6e130578b6660dbe7434e3885b56b507" + "hash": "8dd6cfc374d16ab64138cebccf8d4d15" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Eight.php", @@ -27628,11 +27628,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "9a0ea71bba7f5f28a38d3c96fccb89b3" + "hash": "30e758ef83b790f4c37e1a0186d4f74f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "12e8aab39fe3efb63af28af4572cf1ff" + "hash": "ec7f8ec78c02c33e4922254efeb7a889" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", diff --git a/clients/GitHub/src/Internal/Operator/Actions/GenerateRunnerJitconfigForOrg.php b/clients/GitHub/src/Internal/Operator/Actions/GenerateRunnerJitconfigForOrg.php index 9d2256e744e..03bf9c943c0 100644 --- a/clients/GitHub/src/Internal/Operator/Actions/GenerateRunnerJitconfigForOrg.php +++ b/clients/GitHub/src/Internal/Operator/Actions/GenerateRunnerJitconfigForOrg.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, array $params): Created { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Actions\GenerateRunnerJitconfigForOrg($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHub/src/Internal/Operator/Actions/GenerateRunnerJitconfigForRepo.php b/clients/GitHub/src/Internal/Operator/Actions/GenerateRunnerJitconfigForRepo.php index 07b4e03dfaf..99812424e8d 100644 --- a/clients/GitHub/src/Internal/Operator/Actions/GenerateRunnerJitconfigForRepo.php +++ b/clients/GitHub/src/Internal/Operator/Actions/GenerateRunnerJitconfigForRepo.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $owner, string $repo, array $params): Created { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Actions\GenerateRunnerJitconfigForRepo($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo); diff --git a/clients/GitHub/src/Internal/Router/Post/Actions.php b/clients/GitHub/src/Internal/Router/Post/Actions.php index 8cc4078e546..0c70538f2d2 100644 --- a/clients/GitHub/src/Internal/Router/Post/Actions.php +++ b/clients/GitHub/src/Internal/Router/Post/Actions.php @@ -26,6 +26,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return */ public function generateRunnerJitconfigForOrg(array $params): Created { $arguments = []; @@ -157,6 +158,7 @@ public function addCustomLabelsToSelfHostedRunnerForOrg(array $params): Ok return $operator->call($arguments['org'], $arguments['runner_id'], $params); } + /** @return */ public function generateRunnerJitconfigForRepo(array $params): Created { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Post/Seven.php b/clients/GitHub/src/Internal/Router/Post/Seven.php index 5048580de5b..ef1ba0fbdee 100644 --- a/clients/GitHub/src/Internal/Router/Post/Seven.php +++ b/clients/GitHub/src/Internal/Router/Post/Seven.php @@ -35,7 +35,7 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|Observable|Schema\BasicError */ + /** @return |Observable|Schema\BasicError */ public function call(string $call, array $params, array $pathChunks): Json|Ok|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|WithoutBody|Created|AuthenticationToken|BranchWithProtection|EmptyObject|CodeScanningVariantAnalysis|Reaction|CommitComment|DeploymentStatus|DeploymentBranchPolicy|DeploymentProtectionRule|Issue|IssueComment|iterable|BasicError|Codespace|PullRequestReviewComment|PullRequestSimple|PullRequestReview|ReleaseAsset|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|FullRepository { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Post/Six.php b/clients/GitHub/src/Internal/Router/Post/Six.php index c6e8a3e73bb..8f408f2ae2e 100644 --- a/clients/GitHub/src/Internal/Router/Post/Six.php +++ b/clients/GitHub/src/Internal/Router/Post/Six.php @@ -34,7 +34,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created */ public function call(string $call, array $params, array $pathChunks): Json|Created|AuthenticationToken|WithoutBody|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|TeamDiscussion|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|EmptyObject|CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|ShortBlob|GitCommit|GitRef|GitTag|GitTree|PageBuildStatus|PageDeployment|ReleaseNotesContent|SecretScanningPushProtectionBypass|RepositoryAdvisory|Status|TagProtection|TeamDiscussionComment|Reaction { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Operation/Actions.php b/clients/GitHub/src/Operation/Actions.php index c2566985710..d826dd2145b 100644 --- a/clients/GitHub/src/Operation/Actions.php +++ b/clients/GitHub/src/Operation/Actions.php @@ -271,6 +271,7 @@ public function listRunnerApplicationsForOrg(string $org): iterable return $this->operators->actions👷ListRunnerApplicationsForOrg()->call($org); } + /** @return */ public function generateRunnerJitconfigForOrg(string $org, array $params): Created { return $this->operators->actions👷GenerateRunnerJitconfigForOrg()->call($org, $params); @@ -600,6 +601,7 @@ public function listRunnerApplicationsForRepo(string $owner, string $repo): iter return $this->operators->actions👷ListRunnerApplicationsForRepo()->call($owner, $repo); } + /** @return */ public function generateRunnerJitconfigForRepo(string $owner, string $repo, array $params): Created { return $this->operators->actions👷GenerateRunnerJitconfigForRepo()->call($owner, $repo, $params); diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 1bd853aa70b..71582273155 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -664,7 +664,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'POST /orgs/{org}/actions/runners/generate-jitconfig') { - return $this->typeResolver->resolve('Schema\\Operations\\Actions\\GenerateRunnerJitconfigForOrg\\Response\\ApplicationJson\\Created'); + return $this->typeResolver->resolve(''); } if ($call === 'POST /orgs/{org}/actions/runners/registration-token') { @@ -1992,7 +1992,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig') { - return $this->typeResolver->resolve('Schema\\Operations\\Actions\\GenerateRunnerJitconfigForOrg\\Response\\ApplicationJson\\Created'); + return $this->typeResolver->resolve(''); } if ($call === 'POST /repos/{owner}/{repo}/actions/runners/registration-token') { diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index c9d113464a8..4f3995fc2d4 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -172,7 +172,7 @@ function authHeader(): string assertType('', $client->call('DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}')); assertType('', $client->call('GET /orgs/{org}/actions/runners')); assertType('Observable', $client->call('GET /orgs/{org}/actions/runners/downloads')); -assertType('Schema\\Operations\\Actions\\GenerateRunnerJitconfigForOrg\\Response\\ApplicationJson\\Created', $client->call('POST /orgs/{org}/actions/runners/generate-jitconfig')); +assertType('', $client->call('POST /orgs/{org}/actions/runners/generate-jitconfig')); assertType('', $client->call('POST /orgs/{org}/actions/runners/registration-token')); assertType('', $client->call('POST /orgs/{org}/actions/runners/remove-token')); assertType('', $client->call('GET /orgs/{org}/actions/runners/{runner_id}')); @@ -504,7 +504,7 @@ function authHeader(): string assertType('', $client->call('PUT /repos/{owner}/{repo}/actions/permissions/workflow')); assertType('', $client->call('GET /repos/{owner}/{repo}/actions/runners')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/actions/runners/downloads')); -assertType('Schema\\Operations\\Actions\\GenerateRunnerJitconfigForOrg\\Response\\ApplicationJson\\Created', $client->call('POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig')); +assertType('', $client->call('POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig')); assertType('', $client->call('POST /repos/{owner}/{repo}/actions/runners/registration-token')); assertType('', $client->call('POST /repos/{owner}/{repo}/actions/runners/remove-token')); assertType('', $client->call('GET /repos/{owner}/{repo}/actions/runners/{runner_id}')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 2229e268165..08a9ec0e120 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -9722,7 +9722,7 @@ paths: summary: Get a summary of Copilot usage for organization members description: |- > [!NOTE] - > This endpoint is in public preview and is subject to change. + > This endpoint is closing down. It will be accessible throughout February 2025, but will not return any new data after February 1st. You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE across an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -15895,7 +15895,7 @@ paths: summary: Get a summary of Copilot usage for a team description: |- > [!NOTE] - > This endpoint is in public preview and is subject to change. + > This endpoint is closing down. It will be accessible throughout February 2025, but will not return any new data after February 1st. You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE for users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.