diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 54a4b8e03ff..56629141d4b 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "7147a5168a72455e5f4fcbbf004aee1b", + "specHash": "5111760c5ff914fc4c83cde28d085440", "generatedFiles": { "files": [ { @@ -5600,7 +5600,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php", - "hash": "bd76e67580f50aeab0ee75c4756b986a" + "hash": "a017d588c5b04a9f637de041dd114a34" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Teams.php", @@ -24424,7 +24424,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Billing.php", - "hash": "e9e63e54539847856b0b389cc89aba31" + "hash": "b5af76cf9b440520b40680246dfd76a0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php", @@ -24856,7 +24856,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "c4a7e9ba89e7cad14e37d8076a8a4817" + "hash": "d5e6cb0b5c43bcb0926a401ff8b31c45" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -27632,11 +27632,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "30e758ef83b790f4c37e1a0186d4f74f" + "hash": "cb4f797dc05020132ffc3619950c39e6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "ec7f8ec78c02c33e4922254efeb7a889" + "hash": "0b533e50490546f5b357153d457ee8f5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -30840,11 +30840,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Billing\/GetGithubBillingUsageReportOrg.php", - "hash": "70a3e1c4e736e1956cce8a3c239565de" + "hash": "ef70ace26d92b5d1c03a885156c39521" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Billing\/GetGithubBillingUsageReportOrg.php", - "hash": "7624d94358737de3424ffb2dc614ce55" + "hash": "4787686505d8e5946b3fdf813b8a5ec5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Billing\/GetGithubBillingUsageReportOrgTest.php", @@ -31292,7 +31292,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/AttachEnterpriseConfiguration\/Request\/ApplicationJson.php", - "hash": "186604707177f63d5cd43dc269cc681c" + "hash": "d539be9831b2ef6137042bcae376cd91" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietA915022E\/Tiet867AF88E\/Tiet207FA02F\/Tiet074F28B9.php", diff --git a/clients/GitHub/src/Internal/Operation/Billing/GetGithubBillingUsageReportOrg.php b/clients/GitHub/src/Internal/Operation/Billing/GetGithubBillingUsageReportOrg.php index 744b17eb084..9392104f2a0 100644 --- a/clients/GitHub/src/Internal/Operation/Billing/GetGithubBillingUsageReportOrg.php +++ b/clients/GitHub/src/Internal/Operation/Billing/GetGithubBillingUsageReportOrg.php @@ -24,13 +24,13 @@ final class GetGithubBillingUsageReportOrg public const OPERATION_MATCH = 'GET /organizations/{org}/settings/billing/usage'; /**The organization name. The name is not case sensitive. **/ private string $org; - /**If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2024`. Default value is the current year. **/ + /**If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2025`. Default value is the current year. **/ private int $year; - /**If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. **/ + /**If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. If no year is specified the default `year` is used. **/ private int $month; - /**If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. **/ + /**If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. If no `year` or `month` is specified, the default `year` and `month` are used. **/ private int $day; - /**If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. **/ + /**If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day` is specified, the default `year`, `month`, and `day` are used. **/ private int $hour; public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Organizations\Org\Settings\Billing\Usage $hydrator, string $org, int $year, int $month, int $day, int $hour) diff --git a/clients/GitHub/src/Internal/Operator/Billing/GetGithubBillingUsageReportOrg.php b/clients/GitHub/src/Internal/Operator/Billing/GetGithubBillingUsageReportOrg.php index 3cd795713a8..5902c07b304 100644 --- a/clients/GitHub/src/Internal/Operator/Billing/GetGithubBillingUsageReportOrg.php +++ b/clients/GitHub/src/Internal/Operator/Billing/GetGithubBillingUsageReportOrg.php @@ -24,7 +24,6 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return */ public function call(string $org, int $year, int $month, int $day, int $hour): BillingUsageReport { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Billing\GetGithubBillingUsageReportOrg($this->responseSchemaValidator, $this->hydrator, $org, $year, $month, $day, $hour); diff --git a/clients/GitHub/src/Internal/Router/Get/Billing.php b/clients/GitHub/src/Internal/Router/Get/Billing.php index aab92030fa3..8deb60a0b88 100644 --- a/clients/GitHub/src/Internal/Router/Get/Billing.php +++ b/clients/GitHub/src/Internal/Router/Get/Billing.php @@ -22,7 +22,6 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return */ public function getGithubBillingUsageReportOrg(array $params): BillingUsageReport { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Six.php b/clients/GitHub/src/Internal/Router/Get/Six.php index b7cd2b4936e..8655affe214 100644 --- a/clients/GitHub/src/Internal/Router/Get/Six.php +++ b/clients/GitHub/src/Internal/Router/Get/Six.php @@ -82,7 +82,7 @@ public function __construct(private Routers $routers) { } - /** @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 */ + /** @return Observable||Observable|Schema\BillingUsageReport|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): iterable|CodeSecurityConfiguration|WithoutBody|BillingUsageReport|ActionsCacheUsageOrgEnterprise|Ok|ActionsHostedRunnerLimits|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok|ActionsHostedRunner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsOrg|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|NetworkConfiguration|NetworkSettings|ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|SecretScanningScanHistory|RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|TeamRepository|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Operation/Billing.php b/clients/GitHub/src/Operation/Billing.php index 1215a24b1b2..a786817639d 100644 --- a/clients/GitHub/src/Operation/Billing.php +++ b/clients/GitHub/src/Operation/Billing.php @@ -16,7 +16,6 @@ public function __construct(private Internal\Operators $operators) { } - /** @return */ public function getGithubBillingUsageReportOrg(string $org, int $year, int $month, int $day, int $hour): BillingUsageReport { return $this->operators->billing👷GetGithubBillingUsageReportOrg()->call($org, $year, $month, $day, $hour); diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 71582273155..f82fb65e93c 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -488,7 +488,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /organizations/{org}/settings/billing/usage') { - return $this->typeResolver->resolve(''); + return $this->typeResolver->resolve('Schema\\BillingUsageReport'); } if ($call === 'GET /orgs/{org}') { diff --git a/clients/GitHub/src/Schema/CodeSecurity/AttachEnterpriseConfiguration/Request/ApplicationJson.php b/clients/GitHub/src/Schema/CodeSecurity/AttachEnterpriseConfiguration/Request/ApplicationJson.php index 3377cbe2683..c3e8922be46 100644 --- a/clients/GitHub/src/Schema/CodeSecurity/AttachEnterpriseConfiguration/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/CodeSecurity/AttachEnterpriseConfiguration/Request/ApplicationJson.php @@ -18,7 +18,7 @@ "all_without_configurations" ], "type": "string", - "description": "The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`" + "description": "The type of repositories to attach the configuration to." } }, "additionalProperties": false @@ -30,7 +30,7 @@ }'; /** - * scope: The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids` + * scope: The type of repositories to attach the configuration to. */ public function __construct(public string $scope) { diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index 4f3995fc2d4..7fab5723448 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -128,7 +128,7 @@ function authHeader(): string assertType('', $client->call('DELETE /notifications/threads/{thread_id}/subscription')); assertType('', $client->call('GET /octocat')); assertType('Observable|WithoutBody', $client->call('GET /organizations')); -assertType('', $client->call('GET /organizations/{org}/settings/billing/usage')); +assertType('Schema\\BillingUsageReport', $client->call('GET /organizations/{org}/settings/billing/usage')); assertType('', $client->call('GET /orgs/{org}')); assertType('', $client->call('DELETE /orgs/{org}')); assertType('', $client->call('PATCH /orgs/{org}')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 12cf2703abc..c7814998f7e 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -1949,8 +1949,7 @@ paths: scope: type: string description: The type of repositories to attach the configuration - to. `selected` means the configuration will be attached to only - the repositories specified by `selected_repository_ids` + to. enum: - all - all_without_configurations @@ -42597,7 +42596,7 @@ paths: description: Not Found if repository is not enabled with vulnerability alerts x-github: githubCloudOnly: false - enabledForGitHubApps: false + enabledForGitHubApps: true category: repos subcategory: repos put: @@ -229529,7 +229528,7 @@ components: name: year description: If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, - `2024`. Default value is the current year. + `2025`. Default value is the current year. in: query required: false schema: @@ -229537,7 +229536,8 @@ components: billing-usage-report-month: name: month description: If specified, only return results for a single month. The value - of `month` is an integer between `1` and `12`. + of `month` is an integer between `1` and `12`. If no year is specified the + default `year` is used. in: query required: false schema: @@ -229545,7 +229545,8 @@ components: billing-usage-report-day: name: day description: If specified, only return results for a single day. The value of - `day` is an integer between `1` and `31`. + `day` is an integer between `1` and `31`. If no `year` or `month` is specified, + the default `year` and `month` are used. in: query required: false schema: @@ -229553,7 +229554,8 @@ components: billing-usage-report-hour: name: hour description: If specified, only return results for a single hour. The value - of `hour` is an integer between `0` and `23`. + of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day` + is specified, the default `year`, `month`, and `day` are used. in: query required: false schema: