diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 2dface44814..7c2d3660bd3 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "ed43ce3c2a6bf973841dfa10ad4655d5", + "specHash": "3eab7bc09a6d3be61aedace0f4ddc61d", "generatedFiles": { "files": [ { @@ -256,7 +256,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ApiOverview.php", - "hash": "61d42cbd662e01c122e574f5aafb98f9" + "hash": "6c6374d14557787602804bd2f302d374" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis.php", @@ -5232,7 +5232,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateInformationAboutPagesSite\/Request\/ApplicationJson.php", - "hash": "a2dcccea9077b69ac6a7c1ef8568b408" + "hash": "c930af995197ef35c352db1d0cd00b3e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateInformationAboutPagesSite\/Request\/ApplicationJson\/Source\/One.php", @@ -5616,7 +5616,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "0238447f8d63faa2aab213a5c6fc7e5b" + "hash": "5c09e8a2dc1618038dd76aac957c237b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -21076,7 +21076,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRules.php", - "hash": "264f3fa7c68e650e1544795b3972e819" + "hash": "2c2f35eeda1d4f1761bda694ce64797f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesTest.php", @@ -21088,7 +21088,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRulesListing.php", - "hash": "8161d0d1fbcf91b593f8e8e71e4471d5" + "hash": "c2dfbc2196c4fd5af0b19a646a035fef" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesListingTest.php", @@ -24544,7 +24544,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php", - "hash": "e5a3402b856fbe79b1046d6894cd0560" + "hash": "4d1f695e10a9963cd8f8b2e70d2d11de" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php", @@ -24820,7 +24820,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "948f06b8c92d8e33d327278602fbb7a3" + "hash": "91846cea69243c2f2d085dfecc115551" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -25044,7 +25044,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "c1b860d31a9ea6c6172e2f37efad067c" + "hash": "8899e5b01fff9c7d7c64b4b02fa17a9c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -25148,7 +25148,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "11af7bddc1760f923a8626f12b0e7fe1" + "hash": "377e77661335399e55f0d9a331688bfa" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -25420,7 +25420,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Meta.php", - "hash": "4cfdb4fb4637ac2ec7012c74dae10f31" + "hash": "3e215e4d43c9a354a82970e26246657b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Networks\/Owner\/Repo\/Events.php", @@ -27868,11 +27868,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "1d040f84ac47ba521c4cf21abe112baf" + "hash": "331f67488412d70a983a92c856d09e96" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "c054bd22e150fcfa390fa3d9cb58cb34" + "hash": "5a20613a86a2e7548e34399388080dfd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Meta.php b/clients/GitHub/src/Internal/Hydrator/Operation/Meta.php index 49dfbf47823..b06e7ace4eb 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Meta.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Meta.php @@ -195,6 +195,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ApiO after_actions: + $value = $payload['actions_macos'] ?? null; + + if ($value === null) { + $properties['actionsMacos'] = null; + goto after_actionsMacos; + } + + $properties['actionsMacos'] = $value; + + after_actionsMacos: + $value = $payload['dependabot'] ?? null; if ($value === null) { @@ -640,6 +651,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $actions = $actionsSerializer0->serialize($actions, $this); after_actions: $result['actions'] = $actions; + $actionsMacos = $object->actionsMacos; + + if ($actionsMacos === null) { + goto after_actionsMacos; + } + + static $actionsMacosSerializer0; + + if ($actionsMacosSerializer0 === null) { + $actionsMacosSerializer0 = new SerializeArrayItems(...[]); + } + + $actionsMacos = $actionsMacosSerializer0->serialize($actionsMacos, $this); + after_actionsMacos: $result['actions_macos'] = $actionsMacos; + $dependabot = $object->dependabot; if ($dependabot === null) { diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php index 8903ad40a0b..561663e4c8c 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetBranchRules($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRulesListing.php b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRulesListing.php index 20833009c22..46788ed577e 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRulesListing.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRulesListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetBranchRulesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Router/Get/Repos.php b/clients/GitHub/src/Internal/Router/Get/Repos.php index 50e0360ad49..ecb007b9ba5 100644 --- a/clients/GitHub/src/Internal/Router/Get/Repos.php +++ b/clients/GitHub/src/Internal/Router/Get/Repos.php @@ -2679,7 +2679,7 @@ public function listReleaseAssets(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function getBranchRules(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Seven.php b/clients/GitHub/src/Internal/Router/Get/Seven.php index 0dc42a98af2..66a58b231e7 100644 --- a/clients/GitHub/src/Internal/Router/Get/Seven.php +++ b/clients/GitHub/src/Internal/Router/Get/Seven.php @@ -63,7 +63,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): OidcCustomSub|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|Json|WithoutBody|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|iterable|TeamDiscussion|TeamMembership|TeamProject|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PagesDeploymentStatus|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|RuleSuite|SecretScanningAlert|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Repos.php b/clients/GitHub/src/Internal/Router/List/Repos.php index 9af90774ba1..38d2cbf26e6 100644 --- a/clients/GitHub/src/Internal/Router/List/Repos.php +++ b/clients/GitHub/src/Internal/Router/List/Repos.php @@ -1279,7 +1279,7 @@ public function listReleaseAssetsListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function getBranchRulesListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/List/Seven.php b/clients/GitHub/src/Internal/Router/List/Seven.php index 5badf56370c..b5793a034d6 100644 --- a/clients/GitHub/src/Internal/Router/List/Seven.php +++ b/clients/GitHub/src/Internal/Router/List/Seven.php @@ -14,7 +14,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|iterable */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Operation/Repos.php b/clients/GitHub/src/Operation/Repos.php index 774ad7f9236..ab680d34953 100644 --- a/clients/GitHub/src/Operation/Repos.php +++ b/clients/GitHub/src/Operation/Repos.php @@ -1138,13 +1138,13 @@ public function uploadReleaseAsset(string $owner, string $repo, int $releaseId, return $this->operators->repos👷UploadReleaseAsset()->call($owner, $repo, $releaseId, $name, $label, $params); } - /** @return iterable */ + /** @return Observable */ public function getBranchRules(string $owner, string $repo, string $branch, int $perPage, int $page): iterable { return $this->operators->repos👷GetBranchRules()->call($owner, $repo, $branch, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function getBranchRulesListing(string $owner, string $repo, string $branch, int $perPage, int $page): iterable { return $this->operators->repos👷GetBranchRulesListing()->call($owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 809fd9bb02f..b5db792a8ef 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -3368,11 +3368,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/rules/branches/{branch}') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /repos/{owner}/{repo}/rules/branches/{branch}') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /repos/{owner}/{repo}/rulesets') { diff --git a/clients/GitHub/src/Schema/ApiOverview.php b/clients/GitHub/src/Schema/ApiOverview.php index 0b686b6e2d0..40c0cab42b1 100644 --- a/clients/GitHub/src/Schema/ApiOverview.php +++ b/clients/GitHub/src/Schema/ApiOverview.php @@ -129,6 +129,15 @@ "192.0.2.1" ] }, + "actions_macos": { + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + "192.0.2.1" + ] + }, "dependabot": { "type": "array", "items": { @@ -241,6 +250,10 @@ "192.0.2.1", "192.0.2.1" ], + "actions_macos": [ + "192.0.2.1", + "192.0.2.1" + ], "dependabot": [ "192.0.2.1", "192.0.2.1" @@ -273,7 +286,8 @@ public function __construct(#[MapFrom('verifiable_password_authentication')] public bool $verifiablePasswordAuthentication, #[MapFrom('ssh_key_fingerprints')] public Schema\ApiOverview\SshKeyFingerprints|null $sshKeyFingerprints, #[MapFrom('ssh_keys')] public array|null $sshKeys, public array|null $hooks, #[MapFrom('github_enterprise_importer')] - public array|null $githubEnterpriseImporter, public array|null $web, public array|null $api, public array|null $git, public array|null $packages, public array|null $pages, public array|null $importer, public array|null $actions, public array|null $dependabot, public Schema\ApiOverview\Domains|null $domains,) + public array|null $githubEnterpriseImporter, public array|null $web, public array|null $api, public array|null $git, public array|null $packages, public array|null $pages, public array|null $importer, public array|null $actions, #[MapFrom('actions_macos')] + public array|null $actionsMacos, public array|null $dependabot, public Schema\ApiOverview\Domains|null $domains,) { } } diff --git a/clients/GitHub/src/Schema/Repos/UpdateInformationAboutPagesSite/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/UpdateInformationAboutPagesSite/Request/ApplicationJson.php index cf4e844ede3..9d9c92e1dbc 100644 --- a/clients/GitHub/src/Schema/Repos/UpdateInformationAboutPagesSite/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/UpdateInformationAboutPagesSite/Request/ApplicationJson.php @@ -45,7 +45,7 @@ "string", "null" ], - "description": "Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \\"[Using a custom domain with GitHub Pages](https:\\/\\/docs.github.com\\/articles\\/using-a-custom-domain-with-github-pages\\/).\\"" + "description": "Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \\"[Using a custom domain with GitHub Pages](https:\\/\\/docs.github.com\\/pages\\/configuring-a-custom-domain-for-your-github-pages-site).\\"" }, "https_enforced": { "type": "boolean", @@ -106,7 +106,7 @@ }'; /** - * cname: Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)." + * cname: Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)." * httpsEnforced: Specify whether HTTPS should be enforced for the repository. * buildType: The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch. */ diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index 7b839ec03f5..9ca41c1be3e 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -848,8 +848,8 @@ function authHeader(): string assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/releases/{release_id}/reactions')); assertType('', $client->call('POST /repos/{owner}/{repo}/releases/{release_id}/reactions')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}')); -assertType('iterable', $client->call('GET /repos/{owner}/{repo}/rules/branches/{branch}')); -assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/rules/branches/{branch}')); +assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rules/branches/{branch}')); +assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rules/branches/{branch}')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rulesets')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rulesets')); assertType('', $client->call('POST /repos/{owner}/{repo}/rulesets')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 1ff430fe7c7..c435b8a43d3 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -32299,7 +32299,7 @@ paths: - 'null' description: Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom - domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)." + domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)." https_enforced: type: boolean description: Specify whether HTTPS should be enforced for the repository. @@ -67642,6 +67642,12 @@ components: type: string examples: - 192.0.2.1 + actions_macos: + type: array + items: + type: string + examples: + - 192.0.2.1 dependabot: type: array items: @@ -197628,6 +197634,8 @@ components: - 192.0.2.1 actions: - 192.0.2.1 + actions_macos: + - 192.0.2.1 dependabot: - 192.0.2.1 domains: