diff --git a/clients/GitHubEnterprise-3.14/etc/openapi-client-generator.state b/clients/GitHubEnterprise-3.14/etc/openapi-client-generator.state index a521709523d..3c6dec78856 100644 --- a/clients/GitHubEnterprise-3.14/etc/openapi-client-generator.state +++ b/clients/GitHubEnterprise-3.14/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "bfa60ec3e74b1fce4fd15feaad5f7d6c", + "specHash": "b1c711111d09784b5c8eea125320b49b", "generatedFiles": { "files": [ { @@ -4152,7 +4152,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListPatGrantRequests.php", - "hash": "4e67d9d6ce9a2cf0b6980f23c480b391" + "hash": "5f758e5c2b1fcdd006b97c25182a06a4" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListPatGrantRequestsTest.php", @@ -4164,7 +4164,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListPatGrantRequestsListing.php", - "hash": "36ff151ed2c5b36a2cc34e1b2a1281d5" + "hash": "533974ec95b08c70a8028ea0d25b242d" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListPatGrantRequestsListingTest.php", @@ -4224,7 +4224,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListPatGrants.php", - "hash": "497c0085cca27a6ec26b3f8379d09438" + "hash": "2b851bcecfb9547172ba6b0a1e7be9e8" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListPatGrantsTest.php", @@ -4236,7 +4236,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListPatGrantsListing.php", - "hash": "61bd7a0b9ef00af7fa12baf5c0e9269b" + "hash": "534eefc97115d96604356db177f1ea60" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListPatGrantsListingTest.php", @@ -15372,15 +15372,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/ExemptionRequest\/ExemptionRequestData.php", - "hash": "be43c3a32b264a082842b4342eeed775" + "hash": "630aaa7c462f1f8ac3b7dc762b0274f9" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/ExemptionRequest\/Metadata.php", - "hash": "988efed4f7c1c3059ab0f63d472321a6" + "hash": "2db6608072013591833bb1eefee7f138" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/ExemptionRequest.php", - "hash": "bc1f73d90a1b2bbdf5c6f1ecdf0d6ce4" + "hash": "7f16f5ebd1e113037dfa8f60661ad196" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/SimpleCheckSuite.php", @@ -16312,23 +16312,23 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookExemptionRequestCancelled.php", - "hash": "36d4e2bcb0b8555e69fb368fffe621db" + "hash": "93a2d6420cf2acbc6a042740df446cce" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookExemptionRequestCompleted.php", - "hash": "51703b9377384f2516a435a0f6b6b3a5" + "hash": "c8c3e09be5b04d56397e9eeb27b701a3" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookExemptionRequestCreated.php", - "hash": "a7b75c5d3a2e28dc1d5790a7e3d39929" + "hash": "3dc2dfdf85b19a60524010fab81d5515" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookExemptionRequestResponseDismissed.php", - "hash": "963400e0201e833d39a9e16cb083e16b" + "hash": "3ea3405e059d7de4c4e8b59ae8d3f4e8" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookExemptionRequestResponseSubmitted.php", - "hash": "f1547141e84d98787f827a2513bf92aa" + "hash": "c88a0841c10b63ed6973ea10d2cb6a29" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookCacheSync.php", @@ -26728,7 +26728,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Orgs.php", - "hash": "c2103c417109e65daefb788d4d044b2b" + "hash": "061f675647976c6e46cdeac9dd170acf" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Projects.php", @@ -26852,7 +26852,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Orgs.php", - "hash": "fe915073dd20ac9e0bd3af6896a8f2e1" + "hash": "9295541ad8dc82883d7446b5d0d8331d" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Packages.php", @@ -27224,7 +27224,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "e84f5e5b8c33ffee20a96816b4acc979" + "hash": "a8685313ab27af52ba2d770fad09c865" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", @@ -27264,7 +27264,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php", - "hash": "c7fcf27978087b538f54168ae104169e" + "hash": "04d7bebd979765b12c9ded734740a97c" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", @@ -27440,11 +27440,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "bf0738e950c50df58309d4f130620896" + "hash": "eb9acf050e7c53fe1a316472b8cdc81d" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "155466aae2efdfd7f72ad0621d398053" + "hash": "e5864aba0dd4de9cada7ede4eeee69c5" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -27488,7 +27488,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/CodeScanning.php", - "hash": "8d74cb0767902bc248a4b84f9db34c5a" + "hash": "035196723d9518e17e7f016fa71af9c8" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/SecretScanning.php", @@ -27528,7 +27528,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "85f8bc406864c609810412e42770f9d6" + "hash": "4c37fe0f87641c8622f16e7d398ede54" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Oidc.php", @@ -30301,6 +30301,18 @@ { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/DismissalRequestSecretScanning\/Data.php", "hash": "2a8bbc4780615e5e98d79b6596143aaf" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/DismissalRequestCodeScanning.php", + "hash": "9adb78f88e2982668c79bfbee9596494" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/DismissalRequestCodeScanningMetadata.php", + "hash": "ff675f73e5868c84fed18d108b627eab" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/DismissalRequestCodeScanning\/Data.php", + "hash": "c5256812e36ed09e4c61b38815996b3c" } ] }, diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Attribute/CastUnionToType/Schema/ExemptionRequest/ExemptionRequestData.php b/clients/GitHubEnterprise-3.14/src/Internal/Attribute/CastUnionToType/Schema/ExemptionRequest/ExemptionRequestData.php index eb79e94ae2a..ceb39b88d35 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Attribute/CastUnionToType/Schema/ExemptionRequest/ExemptionRequestData.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Attribute/CastUnionToType/Schema/ExemptionRequest/ExemptionRequestData.php @@ -45,6 +45,13 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed } catch (Throwable) { } } + + if ($signature === 'data|type' && $value['type'] === 'code_scanning_alert_dismissal') { + try { + return $hydrator->hydrateObject(Schema\DismissalRequestCodeScanning::class, $value); + } catch (Throwable) { + } + } } return $value; diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Attribute/CastUnionToType/Schema/ExemptionRequest/Metadata.php b/clients/GitHubEnterprise-3.14/src/Internal/Attribute/CastUnionToType/Schema/ExemptionRequest/Metadata.php index 91b890d5b3e..5e7289417ed 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Attribute/CastUnionToType/Schema/ExemptionRequest/Metadata.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Attribute/CastUnionToType/Schema/ExemptionRequest/Metadata.php @@ -38,6 +38,13 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed } catch (Throwable) { } } + + if ($signature === 'alert_title|reason' && ($value['reason'] === 'false positive' || $value['reason'] === 'won\'t fix' || $value['reason'] === 'used in tests')) { + try { + return $hydrator->hydrateObject(Schema\DismissalRequestCodeScanningMetadata::class, $value); + } catch (Throwable) { + } + } } return $value; diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrantRequests.php b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrantRequests.php index 74951ceaaea..d7a74be3700 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrantRequests.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrantRequests.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage = 30, int $page = 1, string $sort = 'created_at', string $direction = 'desc'): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Orgs\ListPatGrantRequests($this->responseSchemaValidator, $this->hydrator, $org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrantRequestsListing.php b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrantRequestsListing.php index eedff71f60d..dcacd2e6d38 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrantRequestsListing.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrantRequestsListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage = 30, int $page = 1, string $sort = 'created_at', string $direction = 'desc'): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Orgs\ListPatGrantRequestsListing($this->responseSchemaValidator, $this->hydrator, $org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrants.php b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrants.php index d925a922cb9..dbda07342ee 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrants.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrants.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage = 30, int $page = 1, string $sort = 'created_at', string $direction = 'desc'): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Orgs\ListPatGrants($this->responseSchemaValidator, $this->hydrator, $org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrantsListing.php b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrantsListing.php index b383c19a00a..acbf46a252c 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrantsListing.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Orgs/ListPatGrantsListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage = 30, int $page = 1, string $sort = 'created_at', string $direction = 'desc'): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Orgs\ListPatGrantsListing($this->responseSchemaValidator, $this->hydrator, $org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Four.php b/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Four.php index 1c4409e418d..ae98c6bb096 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Four.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Four.php @@ -53,7 +53,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|iterable|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|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): GlobalHook|PreReceiveEnvironment|PreReceiveHook|WebhookConfig|iterable|Installation|ApplicationGrant|WithoutBody|LicenseInfo|EnterpriseOverview|EnterpriseCommentOverview|EnterpriseGistOverview|EnterpriseHookOverview|EnterpriseIssueOverview|EnterpriseMilestoneOverview|EnterpriseOrganizationOverview|EnterprisePageOverview|EnterprisePullRequestOverview|EnterpriseRepositoryOverview|EnterpriseSecurityProductsOverview|EnterpriseUserOverview|EnterpriseSecurityAnalysisSettings|GistSimple|GitignoreTemplate|Thread|Ok|AnnouncementBanner|Json|ExternalGroups|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|ConfigurationStatus|MaintenanceStatus|EnterpriseSettings|GpgKey|Key|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Orgs.php b/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Orgs.php index ce7b90c4057..9c3383300d7 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Orgs.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Orgs.php @@ -309,7 +309,7 @@ public function listOutsideCollaborators(array $params): iterable return $operator->call($arguments['org'], $arguments['filter'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listPatGrantRequests(array $params): iterable { $arguments = []; @@ -384,7 +384,7 @@ public function listPatGrantRequests(array $params): iterable return $operator->call($arguments['org'], $arguments['owner'], $arguments['repository'], $arguments['permission'], $arguments['last_used_before'], $arguments['last_used_after'], $arguments['token_id'], $arguments['per_page'], $arguments['page'], $arguments['sort'], $arguments['direction']); } - /** @return iterable */ + /** @return Observable */ public function listPatGrants(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Four.php b/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Four.php index b69cf25199d..8306a8a22ae 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Four.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Four.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|iterable|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|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Orgs.php b/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Orgs.php index 9d3b70f0e31..91391f6fd24 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Orgs.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Orgs.php @@ -228,7 +228,7 @@ public function listOutsideCollaboratorsListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function listPatGrantRequestsListing(array $params): iterable { $arguments = []; @@ -309,7 +309,7 @@ public function listPatGrantRequestsListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function listPatGrantsListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterprise-3.14/src/Operation/Orgs.php b/clients/GitHubEnterprise-3.14/src/Operation/Orgs.php index 286ffef7039..467a4c8f547 100644 --- a/clients/GitHubEnterprise-3.14/src/Operation/Orgs.php +++ b/clients/GitHubEnterprise-3.14/src/Operation/Orgs.php @@ -336,13 +336,13 @@ public function removeOutsideCollaborator(string $org, string $username): Withou return $this->operators->orgs👷RemoveOutsideCollaborator()->call($org, $username); } - /** @return iterable */ + /** @return Observable */ public function listPatGrantRequests(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage, int $page, string $sort, string $direction): iterable { return $this->operators->orgs👷ListPatGrantRequests()->call($org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); } - /** @return iterable */ + /** @return Observable */ public function listPatGrantRequestsListing(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage, int $page, string $sort, string $direction): iterable { return $this->operators->orgs👷ListPatGrantRequestsListing()->call($org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); @@ -372,13 +372,13 @@ public function listPatGrantRequestRepositoriesListing(string $org, int $patRequ return $this->operators->orgs👷ListPatGrantRequestRepositoriesListing()->call($org, $patRequestId, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function listPatGrants(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage, int $page, string $sort, string $direction): iterable { return $this->operators->orgs👷ListPatGrants()->call($org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); } - /** @return iterable */ + /** @return Observable */ public function listPatGrantsListing(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage, int $page, string $sort, string $direction): iterable { return $this->operators->orgs👷ListPatGrantsListing()->call($org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); diff --git a/clients/GitHubEnterprise-3.14/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.14/src/PHPStan/ClientCallReturnTypes.php index 0b9f1a63b38..bb6c23f2e35 100644 --- a/clients/GitHubEnterprise-3.14/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.14/src/PHPStan/ClientCallReturnTypes.php @@ -1512,11 +1512,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/personal-access-token-requests') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /orgs/{org}/personal-access-token-requests') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'POST /orgs/{org}/personal-access-token-requests') { @@ -1536,11 +1536,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/personal-access-tokens') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /orgs/{org}/personal-access-tokens') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'POST /orgs/{org}/personal-access-tokens') { diff --git a/clients/GitHubEnterprise-3.14/src/Schema/DismissalRequestCodeScanning.php b/clients/GitHubEnterprise-3.14/src/Schema/DismissalRequestCodeScanning.php new file mode 100644 index 00000000000..f7f0830a755 --- /dev/null +++ b/clients/GitHubEnterprise-3.14/src/Schema/DismissalRequestCodeScanning.php @@ -0,0 +1,57 @@ +call('GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}')); assertType('', $client->call('DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}')); assertType('', $client->call('POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore')); -assertType('iterable', $client->call('GET /orgs/{org}/personal-access-token-requests')); -assertType('iterable', $client->call('LIST /orgs/{org}/personal-access-token-requests')); +assertType('Observable', $client->call('GET /orgs/{org}/personal-access-token-requests')); +assertType('Observable', $client->call('LIST /orgs/{org}/personal-access-token-requests')); assertType('', $client->call('POST /orgs/{org}/personal-access-token-requests')); assertType('', $client->call('POST /orgs/{org}/personal-access-token-requests/{pat_request_id}')); assertType('Observable', $client->call('GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories')); assertType('Observable', $client->call('LIST /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories')); -assertType('iterable', $client->call('GET /orgs/{org}/personal-access-tokens')); -assertType('iterable', $client->call('LIST /orgs/{org}/personal-access-tokens')); +assertType('Observable', $client->call('GET /orgs/{org}/personal-access-tokens')); +assertType('Observable', $client->call('LIST /orgs/{org}/personal-access-tokens')); assertType('', $client->call('POST /orgs/{org}/personal-access-tokens')); assertType('', $client->call('POST /orgs/{org}/personal-access-tokens/{pat_id}')); assertType('Observable', $client->call('GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories')); diff --git a/etc/specs/GitHubEnterprise-3.14/current.spec.yaml b/etc/specs/GitHubEnterprise-3.14/current.spec.yaml index 6ad310b9731..ad21d05df85 100644 --- a/etc/specs/GitHubEnterprise-3.14/current.spec.yaml +++ b/etc/specs/GitHubEnterprise-3.14/current.spec.yaml @@ -92019,6 +92019,26 @@ components: alert_number: type: string description: The number of the alert that was detected + dismissal-request-code-scanning: + title: Code scanning alert dismissal request data + description: Code scanning alerts that have dismissal requests. + type: object + properties: + type: + type: string + description: The type of request + enum: + - code_scanning_alert_dismissal + data: + type: array + description: The data related to the code scanning alerts that have dismissal + requests. + items: + type: object + properties: + alert_number: + type: string + description: The number of the alert to be dismissed exemption-request-secret-scanning-metadata: title: Secret Scanning Push Protection Exemption Request Metadata description: Metadata for a secret scanning push protection exemption request. @@ -92050,6 +92070,21 @@ components: - false_positive - tests - revoked + dismissal-request-code-scanning-metadata: + title: Code scanning alert dismissal request metadata + description: Metadata for a code scanning alert dismissal request. + type: object + properties: + alert_title: + type: string + description: The title of the code scanning alert + reason: + type: string + description: The reason for the dismissal request + enum: + - false positive + - won't fix + - used in tests exemption-response: title: Exemption response description: A response to an exemption request by a delegated bypasser. @@ -92111,11 +92146,13 @@ components: - push_ruleset_bypass - secret_scanning - secret_scanning_closure + - code_scanning_alert_dismissal exemption_request_data: oneOf: - "$ref": "#/components/schemas/exemption-request-push-ruleset-bypass" - "$ref": "#/components/schemas/exemption-request-secret-scanning" - "$ref": "#/components/schemas/dismissal-request-secret-scanning" + - "$ref": "#/components/schemas/dismissal-request-code-scanning" resource_identifier: type: string description: The unique identifier for the request type of the exemption @@ -92141,9 +92178,10 @@ components: - object - 'null' description: Metadata about the exemption request. - oneOf: + anyOf: - "$ref": "#/components/schemas/exemption-request-secret-scanning-metadata" - "$ref": "#/components/schemas/dismissal-request-secret-scanning-metadata" + - "$ref": "#/components/schemas/dismissal-request-code-scanning-metadata" expires_at: type: string format: date-time