diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 95dcef044d2..bb3c725c1dd 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "839d5f0f58bc2153b682361fcde32827", + "specHash": "3bee8f8a9cc37e411844e8fe2563c09d", "generatedFiles": { "files": [ { @@ -416,7 +416,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/BaseGist.php", - "hash": "4fe352920b23e16680a4d60e92209351" + "hash": "9d636b124c21ad6980e59aedf9b43faf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/PublicUser.php", @@ -428,7 +428,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistSimple.php", - "hash": "49da19c20e0e41d716ef2023eb81b615" + "hash": "fdeb1df9a0109a2007fc2ac2f2ea6693" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistComment.php", @@ -488,7 +488,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/OrganizationFull.php", - "hash": "cba78a7408353efb7fc0c9011557a11d" + "hash": "e8b7620db579b8c5cb2bb5c549377a42" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ActionsCacheUsageByRepository.php", @@ -1124,7 +1124,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom.php", - "hash": "299fed0945d16cd8533083184b766a2e" + "hash": "8d07965d47d7c9092e15bdc0d0168db8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Metadata.php", @@ -2804,7 +2804,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/BaseGist\/Files.php", - "hash": "bfc65f04d9ab44d9cd668fb53da21c5b" + "hash": "f7d35e1125f8a13fbe8b5b1fb9cfc9a2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/PublicUser\/Plan.php", @@ -2824,7 +2824,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistSimple\/Files.php", - "hash": "f5f7fd25dd19e76f5adb599d0d296eeb" + "hash": "6c83be4f1f572cf5342c526d3436c053" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/MarketplacePurchase\/MarketplacePendingChange.php", @@ -3208,7 +3208,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom\/Sbom.php", - "hash": "3f5fc8e623707d804a281671ed600032" + "hash": "146093fa55a25ea5aa30243ee864ea29" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom\/Sbom\/CreationInfo.php", @@ -3216,7 +3216,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom\/Sbom\/Packages.php", - "hash": "45e0fc75fc6b0bfc563431568207c956" + "hash": "6b33680a7b15f5f740645a43832cb8bc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom\/Sbom\/Packages\/ExternalRefs.php", @@ -5904,7 +5904,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Billing.php", - "hash": "6a532beb011b14a6efb066165d36c980" + "hash": "ac559a2f8f3ce24368653b39056048e1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Activity.php", @@ -6004,7 +6004,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Users.php", - "hash": "488d0b15a78784861f52cbaeff31c902" + "hash": "d92e58dd4dcf5b29b49945b28dd23bc7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operations.php", @@ -6350,13 +6350,9 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem\/PullRequest.php", "hash": "9cbcc8cb23433bf37ee15087f4ce7210" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD335746C\/Tiet406EDE4F\/TietC95BE99F\/TietC8083F83.php", - "hash": "0ed24f52911db7cd522fe68bb22cc2f5" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GistSimple\/ForkOf\/Files.php", - "hash": "9f29edd940718c70821f246304b8b572" + "hash": "33b6563677a74120df204b737b6bb76a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet3D775F5C\/TietC5097624\/TietA99A13A4\/TietE24C2E4A.php", @@ -12092,7 +12088,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Copilot.php", - "hash": "aeb5781fbe65b8a42dacd27ae38ec737" + "hash": "b0f6f3329758c7879df6ac278c094aed" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CheckAutomatedSecurityFixes.php", @@ -15116,7 +15112,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/CancelCopilotSeatAssignmentForUsers.php", - "hash": "e5e139767d9c7670424ecf6b997f32b9" + "hash": "0781abbbd4b2aa25e3f7ba7b084d82d5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/CancelCopilotSeatAssignmentForUsersTest.php", @@ -26068,7 +26064,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Billing.php", - "hash": "c847903e592558bc2ad744fccb12046e" + "hash": "6b5a2c95d462af3827ec30bc276e4a06" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php", @@ -26136,7 +26132,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Copilot.php", - "hash": "4c677a6d546cef14e6d6836adccb0d3f" + "hash": "706227c9332d5733d2017df2b6155f1b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/CodeScanning.php", @@ -26440,7 +26436,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Copilot.php", - "hash": "32492e0e477312c5403077d6d179258c" + "hash": "3a87e9579728be320917c77e0dbdaeeb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Reactions.php", @@ -26552,7 +26548,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "c4516734c87beffacff09e29f313df28" + "hash": "0d399c08389b5a4ea5021a61a72dc039" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -26576,7 +26572,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php", - "hash": "6b93d4f6ee8061b9f0a4afd51689526a" + "hash": "ffc46d6ba42e8136a9a6fbc14c0e6921" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Five.php", @@ -26688,7 +26684,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php", - "hash": "3fe000d851b1bb2390c63a1a700b7e8c" + "hash": "f669ed1b37c61f2496eb33e62e91146f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Eight.php", @@ -28016,7 +28012,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/DependencyGraph\/Sbom.php", - "hash": "4738e0ccd2a476a4f25d7d9ad7f3941e" + "hash": "2314e1c7e5b57c97514738d77d4cd0e7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/DependencyGraph\/Snapshots.php", @@ -29728,11 +29724,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "3734158e8c489df8d1a84d20e99234e4" + "hash": "bdab7a8491adf5bb0e43c837c01afbac" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "b3105d9bc330dd2099ca4b45d1eb295f" + "hash": "483d9ba33395af67c30b9560fb0b346e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -30660,7 +30656,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/AddCopilotSeatsForUsers.php", - "hash": "a16c1d69501782b3b6fba58f5a183f6d" + "hash": "52f50cc3a012fb67d917352ca00e1547" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/AddCopilotSeatsForUsersTest.php", @@ -31632,7 +31628,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Billing\/GetGithubBillingUsageReportGhe.php", - "hash": "8d94f4d8a02b18862d0e35e7ea15e7fa" + "hash": "42e26155a339cbc53a66ef10cad95085" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Billing\/GetGithubBillingUsageReportGheTest.php", @@ -33173,6 +33169,14 @@ { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Insights\/Api\/SummaryStats\/ActorType\/ActorId.php", "hash": "5ed6547506cd0e343b49773e0ec5ce8e" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsRequiredReviewerConfiguration.php", + "hash": "023c7cca6d338366e9ae2b983f7eb13c" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom\/Sbom\/Relationships.php", + "hash": "c2222e07bf4718ff3f1c1385d05aeaba" } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/DependencyGraph/Sbom.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/DependencyGraph/Sbom.php index 9bd4e6884aa..ebaeb477504 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/DependencyGraph/Sbom.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/DependencyGraph/Sbom.php @@ -116,6 +116,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_spdxVersion: + $value = $payload['comment'] ?? null; + + if ($value === null) { + $properties['comment'] = null; + goto after_comment; + } + + $properties['comment'] = $value; + + after_comment: + $value = $payload['creation_info'] ?? null; if ($value === null) { @@ -158,17 +169,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_dataLicense: - $value = $payload['document_describes'] ?? null; - - if ($value === null) { - $missingFields[] = 'document_describes'; - goto after_documentDescribes; - } - - $properties['documentDescribes'] = $value; - - after_documentDescribes: - $value = $payload['document_namespace'] ?? null; if ($value === null) { @@ -190,6 +190,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $properties['packages'] = $value; after_packages: + + $value = $payload['relationships'] ?? null; + + if ($value === null) { + $properties['relationships'] = null; + goto after_relationships; + } + + $properties['relationships'] = $value; + + after_relationships: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\DependencyGraphSpdxSbom\Sbom', $exception, stack: $this->hydrationStack); } @@ -429,6 +440,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $spdxVersion = $object->spdxVersion; after_spdxVersion: $result['spdx_version'] = $spdxVersion; + $comment = $object->comment; + + if ($comment === null) { + goto after_comment; + } + + after_comment: $result['comment'] = $comment; + $creationInfo = $object->creationInfo; $creationInfo = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DependencyGraphSpdxSbom⚡️Sbom⚡️CreationInfo($creationInfo); after_creationInfo: $result['creation_info'] = $creationInfo; @@ -439,16 +458,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $dataLicense = $object->dataLicense; after_dataLicense: $result['data_license'] = $dataLicense; - $documentDescribes = $object->documentDescribes; - static $documentDescribesSerializer0; - - if ($documentDescribesSerializer0 === null) { - $documentDescribesSerializer0 = new SerializeArrayItems(...[]); - } - - $documentDescribes = $documentDescribesSerializer0->serialize($documentDescribes, $this); - after_documentDescribes: $result['document_describes'] = $documentDescribes; - $documentNamespace = $object->documentNamespace; after_documentNamespace: $result['document_namespace'] = $documentNamespace; @@ -462,6 +471,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $packages = $packagesSerializer0->serialize($packages, $this); after_packages: $result['packages'] = $packages; + $relationships = $object->relationships; + + if ($relationships === null) { + goto after_relationships; + } + + static $relationshipsSerializer0; + + if ($relationshipsSerializer0 === null) { + $relationshipsSerializer0 = new SerializeArrayItems(...[]); + } + + $relationships = $relationshipsSerializer0->serialize($relationships, $this); + after_relationships: $result['relationships'] = $relationships; + return $result; } diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Billing/GetGithubBillingUsageReportGhe.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Billing/GetGithubBillingUsageReportGhe.php index ee4bd226d05..ff547c333cf 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Billing/GetGithubBillingUsageReportGhe.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Billing/GetGithubBillingUsageReportGhe.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $enterprise, int $year, int $month, int $day, int $hour, string $costCenterId): BillingUsageReport { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Billing\GetGithubBillingUsageReportGhe($this->responseSchemaValidator, $this->hydrator, $enterprise, $year, $month, $day, $hour, $costCenterId); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/AddCopilotSeatsForUsers.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/AddCopilotSeatsForUsers.php index a09a764eae4..01b1f8a9149 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/AddCopilotSeatsForUsers.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/AddCopilotSeatsForUsers.php @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, array $params): Created|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Copilot\AddCopilotSeatsForUsers($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/CancelCopilotSeatAssignmentForUsers.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/CancelCopilotSeatAssignmentForUsers.php index 37bcd140928..dfc80810c27 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/CancelCopilotSeatAssignmentForUsers.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/CancelCopilotSeatAssignmentForUsers.php @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, array $params): Ok|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Copilot\CancelCopilotSeatAssignmentForUsers($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Copilot.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Copilot.php index e21ea4ca02a..2ab3d42d041 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Copilot.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Copilot.php @@ -35,6 +35,7 @@ public function cancelCopilotSeatAssignmentForTeams(array $params): Ok|WithoutBo return $operator->call($arguments['org'], $params); } + /** @return */ public function cancelCopilotSeatAssignmentForUsers(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php index 195be1a629c..95aee48a8b7 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php @@ -17,7 +17,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */ public function call(string $call, array $params, array $pathChunks): WithoutBody|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|ActionsCacheList|FileCommit { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Billing.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Billing.php index 3a874cc01f1..2f0abf59402 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Billing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Billing.php @@ -111,6 +111,7 @@ public function getSharedStorageBillingGhe(array $params): CombinedBillingUsage return $operator->call($arguments['enterprise']); } + /** @return */ public function getGithubBillingUsageReportGhe(array $params): BillingUsageReport { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php index a06a48d9bd4..9b5b11ed46e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php @@ -84,7 +84,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Schema\BillingUsageReport|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|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|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|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): ActionsCacheUsageOrgEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|ActionsBillingUsage|AdvancedSecurityActiveCommitters|GetAllCostCenters|PackagesBillingUsage|CombinedBillingUsage|BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|ScimEnterpriseGroupList|ScimEnterpriseUserList|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Copilot.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Copilot.php index b7fde0e96d9..8a8fdd3ab50 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Copilot.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Copilot.php @@ -35,6 +35,7 @@ public function addCopilotSeatsForTeams(array $params): Created|WithoutBody return $operator->call($arguments['org'], $params); } + /** @return */ public function addCopilotSeatsForUsers(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Six.php index 822d148e507..88f53c6e4db 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Six.php @@ -37,7 +37,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */ public function call(string $call, array $params, array $pathChunks): Json|Created|AuthenticationToken|WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|TeamDiscussion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|EmptyObject|CodeScanningSarifsReceipt|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|ShortBlob|GitCommit|GitRef|GitTag|GitTree|PageBuildStatus|PageDeployment|ReleaseNotesContent|SecretScanningPushProtectionBypass|RepositoryAdvisory|Status|TagProtection|GroupResponse|UserResponse|ScimUser|TeamDiscussionComment|Reaction { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Billing.php b/clients/GitHubEnterpriseCloud/src/Operation/Billing.php index 16b24c1fe75..f2691bc0032 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Billing.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Billing.php @@ -62,6 +62,7 @@ public function getSharedStorageBillingGhe(string $enterprise): CombinedBillingU return $this->operators->billing👷GetSharedStorageBillingGhe()->call($enterprise); } + /** @return */ public function getGithubBillingUsageReportGhe(string $enterprise, int $year, int $month, int $day, int $hour, string $costCenterId): BillingUsageReport { return $this->operators->billing👷GetGithubBillingUsageReportGhe()->call($enterprise, $year, $month, $day, $hour, $costCenterId); diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Copilot.php b/clients/GitHubEnterpriseCloud/src/Operation/Copilot.php index fc8b867e228..2fcb4fce4cf 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Copilot.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Copilot.php @@ -96,11 +96,13 @@ public function cancelCopilotSeatAssignmentForTeams(string $org, array $params): return $this->operators->copilot👷CancelCopilotSeatAssignmentForTeams()->call($org, $params); } + /** @return */ public function addCopilotSeatsForUsers(string $org, array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|WithoutBody { return $this->operators->copilot👷AddCopilotSeatsForUsers()->call($org, $params); } + /** @return */ public function cancelCopilotSeatAssignmentForUsers(string $org, array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|WithoutBody { return $this->operators->copilot👷CancelCopilotSeatAssignmentForUsers()->call($org, $params); diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index d823b07352a..4f6cb9c3da3 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -444,7 +444,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /enterprises/{enterprise}/settings/billing/usage') { - return $this->typeResolver->resolve('Schema\\BillingUsageReport'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /enterprises/{enterprise}/team/{team_slug}/copilot/metrics') { @@ -1120,11 +1120,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'POST /orgs/{org}/copilot/billing/selected_users') { - return $this->typeResolver->resolve('Schema\\Operations\\Copilot\\AddCopilotSeatsForUsers\\Response\\ApplicationJson\\Created|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'DELETE /orgs/{org}/copilot/billing/selected_users') { - return $this->typeResolver->resolve('Schema\\Operations\\Copilot\\CancelCopilotSeatAssignmentForUsers\\Response\\ApplicationJson\\Ok|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /orgs/{org}/copilot/metrics') { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietD335746C/Tiet406EDE4F/TietC95BE99F/TietC8083F83.php b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietD335746C/Tiet406EDE4F/TietC95BE99F/TietC8083F83.php deleted file mode 100644 index 175dba1e8eb..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietD335746C/Tiet406EDE4F/TietC95BE99F/TietC8083F83.php +++ /dev/null @@ -1,39 +0,0 @@ -call('DELETE /enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}/resource')); assertType('', $client->call('GET /enterprises/{enterprise}/settings/billing/packages')); assertType('', $client->call('GET /enterprises/{enterprise}/settings/billing/shared-storage')); -assertType('Schema\\BillingUsageReport', $client->call('GET /enterprises/{enterprise}/settings/billing/usage')); +assertType('', $client->call('GET /enterprises/{enterprise}/settings/billing/usage')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/team/{team_slug}/copilot/metrics')); assertType('Observable', $client->call('LIST /enterprises/{enterprise}/team/{team_slug}/copilot/metrics')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/team/{team_slug}/copilot/usage')); @@ -286,8 +286,8 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/copilot/billing/seats')); assertType('', $client->call('POST /orgs/{org}/copilot/billing/selected_teams')); assertType('', $client->call('DELETE /orgs/{org}/copilot/billing/selected_teams')); -assertType('Schema\\Operations\\Copilot\\AddCopilotSeatsForUsers\\Response\\ApplicationJson\\Created|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('POST /orgs/{org}/copilot/billing/selected_users')); -assertType('Schema\\Operations\\Copilot\\CancelCopilotSeatAssignmentForUsers\\Response\\ApplicationJson\\Ok|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /orgs/{org}/copilot/billing/selected_users')); +assertType('', $client->call('POST /orgs/{org}/copilot/billing/selected_users')); +assertType('', $client->call('DELETE /orgs/{org}/copilot/billing/selected_users')); assertType('Observable', $client->call('GET /orgs/{org}/copilot/metrics')); assertType('Observable', $client->call('LIST /orgs/{org}/copilot/metrics')); assertType('Observable', $client->call('GET /orgs/{org}/copilot/usage')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index b36b04dda61..c9154500ed2 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -3403,6 +3403,8 @@ paths: and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics, they must have telemetry enabled in their IDE. + The time zone in the response is in UTC time, that means that the cutoff time for the "day" is UTC time. + Only owners and billing managers can view Copilot usage metrics for the enterprise. OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. @@ -77736,6 +77738,11 @@ components: type: string size: type: integer + encoding: + type: string + description: The encoding used for `content`. Currently, `"utf-8"` + and `"base64"` are supported. + default: utf-8 public: type: boolean created_at: @@ -78149,6 +78156,11 @@ components: type: boolean content: type: string + encoding: + type: string + description: The encoding used for `content`. Currently, `"utf-8"` + and `"base64"` are supported. + default: utf-8 public: type: boolean created_at: @@ -79301,6 +79313,7 @@ components: title: Organization Full description: |- Prevents users in the organization from using insecure methods of two-factor authentication to fulfill a two-factor requirement. + Removes non-compliant outside collaborators from the organization and its repositories. GitHub currently defines SMS as an insecure method of two-factor authentication. @@ -83118,6 +83131,31 @@ components: type: string enum: - required_signatures + repository-rule-params-required-reviewer-configuration: + title: RequiredReviewerConfiguration + description: A reviewing team, and file patterns describing which files they + must approve changes to. + type: object + properties: + file_patterns: + type: array + description: Array of file patterns. Pull requests which change matching + files must be approved by the specified team. File patterns use the same + syntax as `.gitignore` files. + items: + type: string + minimum_approvals: + type: integer + description: Minimum number of approvals required from the specified team. + If set to zero, the team will be added to the pull request but approval + is optional. + reviewer_id: + type: string + description: Node ID of the team which must review changes to matching files. + required: + - file_patterns + - minimum_approvals + - reviewer_id repository-rule-pull-request: title: pull_request description: Require all commits be made to a non-target branch and submitted @@ -91012,6 +91050,12 @@ components: conforms to. examples: - SPDX-2.3 + comment: + type: string + description: An optional comment about the SPDX document. + examples: + - 'Exact versions could not be resolved for some packages. For more + information: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/' creationInfo: type: object properties: @@ -91040,18 +91084,11 @@ components: description: The license under which the SPDX document is licensed. examples: - CC0-1.0 - documentDescribes: - type: array - items: - type: string - examples: - - github/github - description: The name of the repository that the SPDX document describes. documentNamespace: type: string description: The namespace for the SPDX document. examples: - - https://github.com/example/dependency_graph/sbom-123 + - https://spdx.org/spdxdocs/protobom/15e41dd2-f961-4f4d-b8dc-f8f57ad70d57 packages: type: array items: @@ -91066,7 +91103,7 @@ components: type: string description: The name of the package. examples: - - rubygems:github/github + - github/github versionInfo: type: string description: |- @@ -91146,14 +91183,34 @@ components: - versionInfo - downloadLocation - filesAnalyzed - - supplier + relationships: + type: array + items: + type: object + properties: + relationshipType: + type: string + description: The type of relationship between the two SPDX elements. + examples: + - DEPENDS_ON + spdxElementId: + type: string + description: The SPDX identifier of the package that is the source + of the relationship. + relatedSpdxElement: + type: string + description: The SPDX identifier of the package that is the target + of the relationship. + required: + - relationshipType + - spdxElementId + - relatedSpdxElement required: - SPDXID - spdxVersion - creationInfo - name - dataLicense - - documentDescribes - documentNamespace - packages required: @@ -210846,6 +210903,7 @@ components: size: 23 truncated: false content: Hello world from GitHub + encoding: utf-8 public: true created_at: '2022-09-20T12:11:58Z' updated_at: '2022-09-21T10:28:06Z' @@ -223179,18 +223237,36 @@ components: - 'Tool: GitHub.com-Dependency-Graph' name: github/example dataLicense: CC0-1.0 - documentDescribes: - - github/example - documentNamespace: https://github.com/github/example/dependency_graph/sbom-abcdef123456 + documentNamespace: https://spdx.org/spdxdocs/protobom/15e41dd2-f961-4f4d-b8dc-f8f57ad70d57 packages: - - SPDXID: SPDXRef-Package - name: rubygems:rails + - name: rails + SPDXID: SPDXRef-Package versionInfo: 1.0.0 downloadLocation: NOASSERTION filesAnalyzed: false licenseConcluded: MIT licenseDeclared: MIT copyrightText: Copyright (c) 1985 GitHub.com + externalRefs: + - referenceCategory: PACKAGE-MANAGER + referenceType: purl + referenceLocator: pkg:gem/rails@1.0.0 + - name: github/example + SPDXID: SPDXRef-Repository + versionInfo: main + downloadLocation: NOASSERTION + filesAnalyzed: false + externalRefs: + - referenceCategory: PACKAGE-MANAGER + referenceType: purl + referenceLocator: pkg:github/example@main + relationships: + - relationshipType: DEPENDS_ON + spdxElementId: SPDXRef-Repository + relatedSpdxElement: SPDXRef-Package + - relationshipType: DESCRIBES + spdxElementId: SPDXRef-DOCUMENT + relatedSpdxElement: SPDXRef-Repository dependency-graph-create-snapshot-request: value: version: 0