From bd2483d7db16d23de48248dec251979afc97d70e Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Thu, 16 Jan 2025 10:57:19 +0000 Subject: [PATCH] [GitHubEnterprise-3.15] Update to 1.1.4-65326b80112b8870ab78f284d1043862 from 1.1.4-2a1d0ccfe930b8ed692c2e9d0749415f Detected Schema changes: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` └─┬Paths ├─┬/orgs/{org}/dependabot/alerts │ └─┬GET │ └─┬Parameters │ ├──[🔀] description (217253:20) │ └─┬Schema │ └──[➖] enum (217263:11)❌ ├─┬/users/{username} │ └─┬GET │ └──[🔀] description (47108:20) ├─┬/user/{account_id} │ └─┬GET │ └──[🔀] description (47025:20) ├─┬/repos/{owner}/{repo}/dependabot/alerts │ └─┬GET │ └─┬Parameters │ ├──[🔀] description (217253:20) │ └─┬Schema │ └──[➖] enum (217263:11)❌ └─┬/enterprises/{enterprise}/dependabot/alerts └─┬GET └─┬Parameters ├──[🔀] description (217253:20) └─┬Schema └──[➖] enum (217263:11)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 8 | 3 | Date: 01/16/25 | Commit: New: etc/specs/GitHubEnterprise-3.15/previous.spec.yaml, Original: etc/specs/GitHubEnterprise-3.15/current.spec.yaml - ❌ **BREAKING Changes**: _3_ out of _8_ - **Modifications**: _5_ - **Removals**: _3_ - **Breaking Removals**: _3_ ERROR: breaking changes discovered --- .../etc/openapi-client-generator.state | 34 +++++++++---------- .../Dependabot/ListAlertsForEnterprise.php | 3 +- .../Operation/Dependabot/ListAlertsForOrg.php | 3 +- .../Dependabot/ListAlertsForRepo.php | 3 +- .../Dependabot/ListAlertsForRepoListing.php | 3 +- .../Dependabot/ListAlertsForEnterprise.php | 2 +- .../Operator/Dependabot/ListAlertsForOrg.php | 2 +- .../Operator/Dependabot/ListAlertsForRepo.php | 2 +- .../Dependabot/ListAlertsForRepoListing.php | 2 +- .../src/Internal/Router/Get/Dependabot.php | 6 ++-- .../src/Internal/Router/Get/Five.php | 2 +- .../src/Internal/Router/Get/Six.php | 2 +- .../src/Internal/Router/List/Dependabot.php | 2 +- .../src/Internal/Router/List/Six.php | 2 +- .../src/Operation/Dependabot.php | 8 ++--- .../src/PHPStan/ClientCallReturnTypes.php | 8 ++--- .../tests/Types/ClientCallReturnTypes.php | 8 ++--- .../GitHubEnterprise-3.15/current.spec.yaml | 10 +++--- 18 files changed, 54 insertions(+), 48 deletions(-) diff --git a/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state b/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state index 95ff07d0e6d..502576de4df 100644 --- a/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state +++ b/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "2a1d0ccfe930b8ed692c2e9d0749415f", + "specHash": "65326b80112b8870ab78f284d1043862", "generatedFiles": { "files": [ { @@ -1592,11 +1592,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterprise.php", - "hash": "1c49b8ec2fa130b9ba8a26640227ccc2" + "hash": "84b145683712982d41eb7a66817c53a0" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForEnterprise.php", - "hash": "1f68b2e0be822f1fe631c2ecbf33af29" + "hash": "f4d6f6268171e5bdac4c36bd524d933e" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterpriseTest.php", @@ -3380,11 +3380,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrg.php", - "hash": "11afd2fdb8f2f1ec34930ffc2d5d3098" + "hash": "1050390075a18d0296db1b1e721817e1" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForOrg.php", - "hash": "eea752ff872e32ab676814f4711443ce" + "hash": "e19123d6c0aeecf27c8c9359cfa37d73" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrgTest.php", @@ -7800,11 +7800,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepo.php", - "hash": "8b23794e956c8af84ef1cd042d13b0ea" + "hash": "975e7811e98b70232a189dec19f66aef" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepo.php", - "hash": "8e6d6c30b30952cbf0c0a1812a9a20af" + "hash": "59ebd25ff38d6eb82f783c0fc1228b41" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoTest.php", @@ -7812,11 +7812,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoListing.php", - "hash": "52ab2d8afa5a6777ff8a0ddf30058a43" + "hash": "4a00616c51f0de87bd4b4941a3b0a849" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepoListing.php", - "hash": "ef770952171600f29eb947006685fe61" + "hash": "87ddd1630305fe04a436c97777744af0" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoListingTest.php", @@ -26780,7 +26780,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php", - "hash": "ca26062c508849ffeaf3e6115bd56cfd" + "hash": "f330e11663a3945bee87a975e4b41c9d" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php", @@ -26888,7 +26888,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Dependabot.php", - "hash": "a37ef0f86dd26e1735a1af6e096218d8" + "hash": "232f263d8ab1918d4d508a3073fbaee8" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Reactions.php", @@ -27244,7 +27244,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "03a78049cc14a10e8b8ad6bf8778c4ab" + "hash": "45d90c7d0fa3045cfc0d85d4a0a768ca" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php", @@ -27252,7 +27252,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "f44dd133d5a777f374149df2b549e928" + "hash": "29558896ef32876e1de67d9be253c61e" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -27288,7 +27288,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "ff138dca37b30debc9205e3aaf48f5bd" + "hash": "5dbc4574427c165264213e811fa56311" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -27456,11 +27456,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "52e89bedfdc1c654b53716ca26b88653" + "hash": "46d92b97de1bbcb85727b7f423dcecd5" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "f9d91dfb2478d5bd293c906fc2e6be34" + "hash": "d821de378dfb0e7fb77de30f3028e58f" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -27512,7 +27512,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Dependabot.php", - "hash": "6512e1520f8d0d54c26b8b494834c097" + "hash": "bef1eaa69ea76e7d6f6a0bb87ac6eedc" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Billing.php", diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForEnterprise.php b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForEnterprise.php index 4349723ee6b..c755b31bba5 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForEnterprise.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForEnterprise.php @@ -54,7 +54,8 @@ final class ListAlertsForEnterprise private int $last; /**The property by which to sort the results. `created` means when the alert was created. - `updated` means when the alert's state last changed. **/ + `updated` means when the alert's state last changed. + `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. **/ private string $sort; /**The direction to sort the results by. **/ private string $direction; diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForOrg.php b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForOrg.php index 14aa3dc88eb..bb82926a566 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForOrg.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForOrg.php @@ -54,7 +54,8 @@ final class ListAlertsForOrg private int $last; /**The property by which to sort the results. `created` means when the alert was created. - `updated` means when the alert's state last changed. **/ + `updated` means when the alert's state last changed. + `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. **/ private string $sort; /**The direction to sort the results by. **/ private string $direction; diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForRepo.php b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForRepo.php index 10fbe3fa0d6..205d116ad98 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForRepo.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForRepo.php @@ -58,7 +58,8 @@ final class ListAlertsForRepo private int $last; /**The property by which to sort the results. `created` means when the alert was created. - `updated` means when the alert's state last changed. **/ + `updated` means when the alert's state last changed. + `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. **/ private string $sort; /**The direction to sort the results by. **/ private string $direction; diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForRepoListing.php b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForRepoListing.php index 4c2c5b77bbd..592be1bc02d 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForRepoListing.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Dependabot/ListAlertsForRepoListing.php @@ -58,7 +58,8 @@ final class ListAlertsForRepoListing private int $last; /**The property by which to sort the results. `created` means when the alert was created. - `updated` means when the alert's state last changed. **/ + `updated` means when the alert's state last changed. + `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. **/ private string $sort; /**The direction to sort the results by. **/ private string $direction; diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php index d9101ec8994..227fc3182be 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function call(string $enterprise, string $state, string $severity, string $ecosystem, string $package, 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\GitHubEnterprise\Internal\Operation\Dependabot\ListAlertsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForOrg.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForOrg.php index d817e6253a6..a438ef1b926 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForOrg.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForOrg.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function call(string $org, string $state, string $severity, string $ecosystem, string $package, 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\GitHubEnterprise\Internal\Operation\Dependabot\ListAlertsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForRepo.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForRepo.php index aaa11a3a2ea..725c65c665a 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForRepo.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForRepo.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, 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\GitHubEnterprise\Internal\Operation\Dependabot\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php index ce89b2216d4..5eb311a1cca 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, 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\GitHubEnterprise\Internal\Operation\Dependabot\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Dependabot.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Dependabot.php index dafe5af3b28..cfaf9ea5af0 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Dependabot.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Dependabot.php @@ -62,7 +62,7 @@ public function getOrgSecret(array $params): OrganizationDependabotSecret return $operator->call($arguments['org'], $arguments['secret_name']); } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForRepo(array $params): iterable|WithoutBody { $arguments = []; @@ -200,7 +200,7 @@ public function listRepoSecrets(array $params): Ok return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForEnterprise(array $params): iterable|WithoutBody { $arguments = []; @@ -287,7 +287,7 @@ public function listAlertsForEnterprise(array $params): iterable|WithoutBody return $operator->call($arguments['enterprise'], $arguments['state'], $arguments['severity'], $arguments['ecosystem'], $arguments['package'], $arguments['scope'], $arguments['before'], $arguments['after'], $arguments['last'], $arguments['sort'], $arguments['direction'], $arguments['first'], $arguments['per_page']); } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForOrg(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Five.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Five.php index d8f23a0c469..8993d1323cc 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterprise-3.15/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|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|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Observable|WithoutBody|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\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|iterable|WithoutBody|GistComment|GhesChecksSystemRequirements|GhesClusterStatus|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\GetManageConfigApplyStatus\Response\ApplicationJson\Ok|GhesLicenseInfo|GhesConfigNodes|GhesGetSettings|GhesReplicationStatus|BasicError|ThreadSubscription|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrganizationRole|OrgPreReceiveHook|RepositoryRuleset|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Installation|Language|LicenseContent|Page|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Six.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Six.php index d580d991783..8405dca639d 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Six.php @@ -70,7 +70,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|WithoutBody|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 */ + /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|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): PreReceiveEnvironmentDownloadStatus|ActionsCacheUsageOrgEnterprise|ActionsCacheUsagePolicyEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\GetManageConfigApplyEvents\Response\ApplicationJson\Ok|WithoutBody|GhesLicenseCheck|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodeSecurityConfiguration|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Package|CustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|CommitComment|Commit|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|RepositoryPreReceiveHook|PullRequest|Release|RepositoryRuleset|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|ScimEnterpriseGroupList|ScimEnterpriseUserList|TeamRepository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Dependabot.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Dependabot.php index 4d9743cfcb2..dfd7cd9c4ae 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Dependabot.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Dependabot.php @@ -21,7 +21,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForRepoListing(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Six.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Six.php index 3549d003d09..c5ed78883cb 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Six.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Six.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|WithoutBody|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|Observable|Observable|Observable|Observable|iterable|WithoutBody|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/GitHubEnterprise-3.15/src/Operation/Dependabot.php b/clients/GitHubEnterprise-3.15/src/Operation/Dependabot.php index aa25b692cb1..59d0efd4244 100644 --- a/clients/GitHubEnterprise-3.15/src/Operation/Dependabot.php +++ b/clients/GitHubEnterprise-3.15/src/Operation/Dependabot.php @@ -21,13 +21,13 @@ public function __construct(private Internal\Operators $operators) { } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForEnterprise(string $enterprise, string $state, string $severity, string $ecosystem, string $package, 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, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForOrg(string $org, string $state, string $severity, string $ecosystem, string $package, 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, $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 Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForRepo(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, 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, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForRepoListing(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, 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, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); diff --git a/clients/GitHubEnterprise-3.15/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.15/src/PHPStan/ClientCallReturnTypes.php index 83b80063a5d..298cda9c5a7 100644 --- a/clients/GitHubEnterprise-3.15/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.15/src/PHPStan/ClientCallReturnTypes.php @@ -604,7 +604,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /enterprises/{enterprise}/dependabot/alerts') { - return $this->typeResolver->resolve('Observable|WithoutBody'); + return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'GET /enterprises/{enterprise}/secret-scanning/alerts') { @@ -1240,7 +1240,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/dependabot/alerts') { - return $this->typeResolver->resolve('Observable|WithoutBody'); + return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'GET /orgs/{org}/dependabot/secrets') { @@ -2784,11 +2784,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/dependabot/alerts') { - return $this->typeResolver->resolve('Observable|WithoutBody'); + return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'LIST /repos/{owner}/{repo}/dependabot/alerts') { - return $this->typeResolver->resolve('Observable|WithoutBody'); + return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}') { diff --git a/clients/GitHubEnterprise-3.15/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.15/tests/Types/ClientCallReturnTypes.php index b4eeda6fc64..1d57db809c9 100644 --- a/clients/GitHubEnterprise-3.15/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.15/tests/Types/ClientCallReturnTypes.php @@ -157,7 +157,7 @@ function authHeader(): string assertType('Observable', $client->call('LIST /enterprises/{enterprise}/code-scanning/alerts')); assertType('', $client->call('GET /enterprises/{enterprise}/code_security_and_analysis')); assertType('', $client->call('PATCH /enterprises/{enterprise}/code_security_and_analysis')); -assertType('Observable|WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); +assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/secret-scanning/alerts')); assertType('', $client->call('GET /enterprises/{enterprise}/settings/billing/advanced-security')); assertType('', $client->call('POST /enterprises/{enterprise}/{security_product}/{enablement}')); @@ -316,7 +316,7 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/custom-repository-roles/{role_id}')); assertType('', $client->call('DELETE /orgs/{org}/custom-repository-roles/{role_id}')); assertType('', $client->call('PATCH /orgs/{org}/custom-repository-roles/{role_id}')); -assertType('Observable|WithoutBody', $client->call('GET /orgs/{org}/dependabot/alerts')); +assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\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}')); @@ -702,8 +702,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('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts')); -assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/dependabot/alerts')); +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('', $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/GitHubEnterprise-3.15/current.spec.yaml b/etc/specs/GitHubEnterprise-3.15/current.spec.yaml index 8b308807898..1edf3b33590 100644 --- a/etc/specs/GitHubEnterprise-3.15/current.spec.yaml +++ b/etc/specs/GitHubEnterprise-3.15/current.spec.yaml @@ -47025,9 +47025,9 @@ paths: description: |- Provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time. - The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.15/rest/guides/getting-started-with-the-rest-api#authentication). + The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be public which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.15/rest/guides/getting-started-with-the-rest-api#authentication). - The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/enterprise-server@3.15/rest/users/emails)". + The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see [Emails API](https://docs.github.com/enterprise-server@3.15/rest/users/emails). tags: - users operationId: users/get-by-id @@ -47108,9 +47108,9 @@ paths: description: |- Provides publicly available information about someone with a GitHub account. - The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.15/rest/guides/getting-started-with-the-rest-api#authentication). + The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be public which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.15/rest/guides/getting-started-with-the-rest-api#authentication). - The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/enterprise-server@3.15/rest/users/emails)". + The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see [Emails API](https://docs.github.com/enterprise-server@3.15/rest/users/emails). tags: - users operationId: users/get-by-username @@ -217254,11 +217254,13 @@ components: The property by which to sort the results. `created` means when the alert was created. `updated` means when the alert's state last changed. + `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. schema: type: string enum: - created - updated + - epss_percentage default: created pagination-first: name: first