diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 2d651f0d797..969f17412e6 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "fb4f59d4f7690940a5768a05bb3a93e7", + "specHash": "5ebfc5c2a69a8e68eadbe18dfa04e5f0", "generatedFiles": { "files": [ { @@ -5980,7 +5980,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "790eeced780da4c26a9ed74ff5f3f523" + "hash": "4f5d7fef37bd2120a1780f62f55955d4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php", @@ -22524,7 +22524,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRules.php", - "hash": "3055848e7a5b2104b955c962a6ecc4c2" + "hash": "b3f9a3392d3bacb0fb2233579a46552d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesTest.php", @@ -22536,7 +22536,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRulesListing.php", - "hash": "09821c9af18dc13584d353e961ae170e" + "hash": "4c6a8d6987e03b259607152e2729331a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesListingTest.php", @@ -26104,7 +26104,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php", - "hash": "0d02ab6ee39f3c666b400ae8c58e1de6" + "hash": "df0c662e6d071bda44f4a643ee7ff607" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php", @@ -26416,7 +26416,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "635629223b806dccb50f29acfe5ff559" + "hash": "47c51a71e9d1c87a2403b10abaee7745" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -26664,7 +26664,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "56e6f815d926fb78539f640d62d5d238" + "hash": "01c46f8698c2b37d5d7b968995b9b361" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -26768,7 +26768,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "986d79aa04979f9b5ac747c661758282" + "hash": "34c63a5614c82b89a9acc00d8e80e186" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -29780,15 +29780,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyCreated.php", - "hash": "da958d3fe588d23d59c3e3ecd49215ce" + "hash": "c6be4f5147572f1e7fbabb4f5b6dd1d7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyDeleted.php", - "hash": "8c4433cbfeffca873bdcfc8750b58877" + "hash": "a61f2596cc9e3bf07331e7b04f21304f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyUpdated.php", - "hash": "0093e4cfd938b7fffaa8c3defbaf71a1" + "hash": "845025797e8917261c9504d240474614" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyValuesUpdated.php", @@ -29872,11 +29872,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "68056b3f9feb382a8a701bef47f897c2" + "hash": "39a5e2f5decb0f829364411b9f148303" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "f76a84b455952691992a8910f57fe448" + "hash": "6ac97666590e56ac374b6855d27ae54e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -30196,7 +30196,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomProperty.php", - "hash": "78dbb519c38839f144297e613a4e083a" + "hash": "d978985d3f259b7a9c75ac334ff9c991" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomPropertyValues.php", @@ -32092,7 +32092,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeSecurity\/GetRepositoriesForConfiguration.php", - "hash": "3a5f58cdc041ab05a6fd24a08513cd6f" + "hash": "e8e2988d3f1e4e1e81e28fefd50d7ea3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeSecurity\/GetRepositoriesForConfigurationTest.php", @@ -32140,7 +32140,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeSecurity.php", - "hash": "cd0dd2e123717a37dc1e024386099683" + "hash": "8cdb43384293a93b36ca25b86d0ea079" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/CodeSecurity.php", @@ -32160,7 +32160,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php", - "hash": "593cbfdfe2b976031b59192081c3f61d" + "hash": "fde1258be104d6d06536f578b6fa8c18" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php", diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomProperty.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomProperty.php index 111bf53e57f..e70e29958bf 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomProperty.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomProperty.php @@ -140,7 +140,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'organization'; + $properties['organization'] = null; goto after_organization; } @@ -937,7 +937,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'organization'; + $properties['organization'] = null; goto after_organization; } @@ -1097,7 +1097,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'organization'; + $properties['organization'] = null; goto after_organization; } @@ -1280,7 +1280,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $installation = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($installation); after_installation: $result['installation'] = $installation; - $organization = $object->organization; + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($organization); after_organization: $result['organization'] = $organization; @@ -1606,7 +1611,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $installation = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($installation); after_installation: $result['installation'] = $installation; - $organization = $object->organization; + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($organization); after_organization: $result['organization'] = $organization; @@ -1663,7 +1673,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $installation = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($installation); after_installation: $result['installation'] = $installation; - $organization = $object->organization; + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($organization); after_organization: $result['organization'] = $organization; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeSecurity/GetRepositoriesForConfiguration.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeSecurity/GetRepositoriesForConfiguration.php index 8f5dffb2922..857238abb73 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeSecurity/GetRepositoriesForConfiguration.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeSecurity/GetRepositoriesForConfiguration.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, int $configurationId, string $before, string $after, int $perPage = 30, string $status = 'all'): iterable { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeSecurity\GetRepositoriesForConfiguration($this->responseSchemaValidator, $this->hydrator, $org, $configurationId, $before, $after, $perPage, $status); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRules.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRules.php index 821286c0c33..9734de50999 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRules.php +++ b/clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Repos\GetBranchRules($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRulesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRulesListing.php index 057a38e31e4..6512c1b5743 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRulesListing.php +++ b/clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Repos\GetBranchRulesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeSecurity.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeSecurity.php index a8574193a86..10f08b56d92 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeSecurity.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeSecurity.php @@ -96,7 +96,7 @@ public function getConfiguration(array $params): CodeSecurityConfiguration|Witho return $operator->call($arguments['org'], $arguments['configuration_id']); } - /** @return iterable */ + /** @return Observable */ public function getRepositoriesForConfiguration(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php index 1e7d605f21c..79266ef0392 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php @@ -2730,7 +2730,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/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php index 50a018424b1..8fb3f831637 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php @@ -67,7 +67,7 @@ public function __construct(private Routers $routers) { } - /** @return |iterable|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): Json|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|WithoutBody|iterable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|GroupMapping|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\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|GroupResponse|UserResponse|ScimUser|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php index 39ac8d75e5c..3531e0b9e04 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php @@ -1285,7 +1285,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/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php index 3dbe2f6e24c..47f962efaec 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php @@ -14,7 +14,7 @@ public function __construct(private Routers $routers) { } - /** @return 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|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/GitHubEnterpriseCloud/src/Operation/CodeSecurity.php b/clients/GitHubEnterpriseCloud/src/Operation/CodeSecurity.php index 7a15478cfa0..acbf20d2daf 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/CodeSecurity.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/CodeSecurity.php @@ -71,7 +71,7 @@ public function setConfigurationAsDefault(string $org, int $configurationId, arr return $this->operators->codeSecurity👷SetConfigurationAsDefault()->call($org, $configurationId, $params); } - /** @return iterable */ + /** @return Observable */ public function getRepositoriesForConfiguration(string $org, int $configurationId, string $before, string $after, int $perPage, string $status): iterable { return $this->operators->codeSecurity👷GetRepositoriesForConfiguration()->call($org, $configurationId, $before, $after, $perPage, $status); diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Repos.php b/clients/GitHubEnterpriseCloud/src/Operation/Repos.php index a9f6e16d132..d2cfab9ce2e 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Repos.php @@ -1163,13 +1163,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/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index 46f5537beec..8a6f7a1771b 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -1024,7 +1024,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /orgs/{org}/codespaces') { @@ -3832,11 +3832,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/GitHubEnterpriseCloud/src/Schema/WebhookCustomPropertyCreated.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCustomPropertyCreated.php index 997a0402fab..928e1c82296 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCustomPropertyCreated.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCustomPropertyCreated.php @@ -12,8 +12,7 @@ "title": "custom property created event", "required": [ "action", - "definition", - "organization" + "definition" ], "type": "object", "properties": { @@ -565,7 +564,7 @@ organization, or when the event occurs from activity in a repository owned by an organization. * sender: The GitHub user that triggered the event. This property is included in every webhook payload. */ - public function __construct(public string $action, public Schema\OrgCustomProperty $definition, public Schema\EnterpriseWebhooks|null $enterprise, public Schema\SimpleInstallation|null $installation, public Schema\OrganizationSimpleWebhooks $organization, public Schema\SimpleUserWebhooks|null $sender) + public function __construct(public string $action, public Schema\OrgCustomProperty $definition, public Schema\EnterpriseWebhooks|null $enterprise, public Schema\SimpleInstallation|null $installation, public Schema\OrganizationSimpleWebhooks|null $organization, public Schema\SimpleUserWebhooks|null $sender) { } } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCustomPropertyDeleted.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCustomPropertyDeleted.php index fa2f21725c8..6f263c22477 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCustomPropertyDeleted.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCustomPropertyDeleted.php @@ -12,8 +12,7 @@ "title": "custom property deleted event", "required": [ "action", - "definition", - "organization" + "definition" ], "type": "object", "properties": { @@ -485,7 +484,7 @@ organization, or when the event occurs from activity in a repository owned by an organization. * sender: The GitHub user that triggered the event. This property is included in every webhook payload. */ - public function __construct(public string $action, public Schema\WebhookCustomPropertyDeleted\Definition $definition, public Schema\EnterpriseWebhooks|null $enterprise, public Schema\SimpleInstallation|null $installation, public Schema\OrganizationSimpleWebhooks $organization, public Schema\SimpleUserWebhooks|null $sender) + public function __construct(public string $action, public Schema\WebhookCustomPropertyDeleted\Definition $definition, public Schema\EnterpriseWebhooks|null $enterprise, public Schema\SimpleInstallation|null $installation, public Schema\OrganizationSimpleWebhooks|null $organization, public Schema\SimpleUserWebhooks|null $sender) { } } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCustomPropertyUpdated.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCustomPropertyUpdated.php index df7163fa71d..002bd649677 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookCustomPropertyUpdated.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookCustomPropertyUpdated.php @@ -12,8 +12,7 @@ "title": "custom property updated event", "required": [ "action", - "definition", - "organization" + "definition" ], "type": "object", "properties": { @@ -565,7 +564,7 @@ organization, or when the event occurs from activity in a repository owned by an organization. * sender: The GitHub user that triggered the event. This property is included in every webhook payload. */ - public function __construct(public string $action, public Schema\OrgCustomProperty $definition, public Schema\EnterpriseWebhooks|null $enterprise, public Schema\SimpleInstallation|null $installation, public Schema\OrganizationSimpleWebhooks $organization, public Schema\SimpleUserWebhooks|null $sender) + public function __construct(public string $action, public Schema\OrgCustomProperty $definition, public Schema\EnterpriseWebhooks|null $enterprise, public Schema\SimpleInstallation|null $installation, public Schema\OrganizationSimpleWebhooks|null $organization, public Schema\SimpleUserWebhooks|null $sender) { } } diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index 46b74795894..4dd527da21f 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -262,7 +262,7 @@ function authHeader(): string assertType('', $client->call('PATCH /orgs/{org}/code-security/configurations/{configuration_id}')); assertType('', $client->call('POST /orgs/{org}/code-security/configurations/{configuration_id}/attach')); assertType('', $client->call('PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults')); -assertType('iterable', $client->call('GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories')); +assertType('Observable', $client->call('GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories')); assertType('', $client->call('GET /orgs/{org}/codespaces')); assertType('', $client->call('PUT /orgs/{org}/codespaces/access')); assertType('', $client->call('POST /orgs/{org}/codespaces/access/selected_users')); @@ -964,8 +964,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/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index c81161cc2cd..24e4c3167b4 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -112325,7 +112325,6 @@ components: required: - action - definition - - organization webhook-custom-property-deleted: title: custom property deleted event type: object @@ -112353,7 +112352,6 @@ components: required: - action - definition - - organization webhook-custom-property-updated: title: custom property updated event type: object @@ -112375,7 +112373,6 @@ components: required: - action - definition - - organization webhook-custom-property-values-updated: title: Custom property values updated event type: object