diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index b923d41cf06..13d98694959 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "64034f0aaa76d6090b5eb70ffe778e12", + "specHash": "1f428455b4cea06755dbb12f469fc171", "generatedFiles": { "files": [ { @@ -5612,7 +5612,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "cf048b8dcf3799a207b828c288738c09" + "hash": "8424548ebe6553d096fbe836b3a9382f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -21008,7 +21008,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRules.php", - "hash": "6d7cc2fe0b07885f74f61a06022f649e" + "hash": "e151bf4487dda0d9ba1f0d299e3403a3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesTest.php", @@ -21020,7 +21020,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRulesListing.php", - "hash": "6c3a8d5a072082d64ba1ec6c290f9438" + "hash": "e330b3b16b00f944282f9ec109843359" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesListingTest.php", @@ -24476,7 +24476,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php", - "hash": "4aa35719d6224ad7eddc2ac98b6e7ccb" + "hash": "ae27e1573c321117da89fe740d5f5f9a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php", @@ -24752,7 +24752,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "399f5edcdedb899363ad4b8540da75de" + "hash": "8afd666358a93bb89c0ae944fe11a6a2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -24976,7 +24976,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "6e51874875891ed278d57ff7b299f1c5" + "hash": "004122fbb6a1f96d6a0c2801a632c588" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -25080,7 +25080,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "518504f44f1fc79ff08cdbe4663075a1" + "hash": "f15289e9f2df163f19fb9f360950c959" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -27696,15 +27696,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyCreated.php", - "hash": "816b9a9bf3adb824e915f523425b0e28" + "hash": "6fc3bd972e4fc5571d60e8403da16f3b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyDeleted.php", - "hash": "ce29869ffd300e5b13d122721dd10ed6" + "hash": "2504f38f1ea361d3757aa0964db4e5fa" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyUpdated.php", - "hash": "5cb186dbb0268552ebf45232fccd7063" + "hash": "73f2f0678b7993ef20c9b69e780620b3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyValuesUpdated.php", @@ -27788,11 +27788,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "6810d856fa35757c04ed82c7d70096ef" + "hash": "c06de68a2d5065e055a7200b0f4e2b5d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "621c3d1773130e0e9a7dacfb66bcafeb" + "hash": "1b3588a342742c08a3fe943b1886b3c4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -28112,7 +28112,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomProperty.php", - "hash": "a65528d0a98cc5095b9760a70c6b4983" + "hash": "af76c979df78cec830197ae02510b2ee" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomPropertyValues.php", @@ -29740,7 +29740,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeSecurity\/GetRepositoriesForConfiguration.php", - "hash": "54f942a6978dd9fbfeda1b3bf9e3ffb0" + "hash": "72bfcfeff1297d5ae5c2de728fee2a4e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeSecurity\/GetRepositoriesForConfigurationTest.php", @@ -29804,7 +29804,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeSecurity.php", - "hash": "844fd2d6dba69c3bbb0f1d5d05808646" + "hash": "1dc44fb96797b0a5a6285ed99a7607f0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/CodeSecurity.php", @@ -29824,7 +29824,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php", - "hash": "9471386c2ac6625f26fa794fd86d545d" + "hash": "0f0cad39f86e6ac4799e47f3d4c2fa07" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php", diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php b/clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php index 5ac79a0b9fb..951263314b4 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php @@ -140,7 +140,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'organization'; + $properties['organization'] = null; goto after_organization; } @@ -937,7 +937,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'organization'; + $properties['organization'] = null; goto after_organization; } @@ -1097,7 +1097,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'organization'; + $properties['organization'] = null; goto after_organization; } @@ -1280,7 +1280,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $installation = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($installation); after_installation: $result['installation'] = $installation; - $organization = $object->organization; + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($organization); after_organization: $result['organization'] = $organization; @@ -1606,7 +1611,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $installation = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($installation); after_installation: $result['installation'] = $installation; - $organization = $object->organization; + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($organization); after_organization: $result['organization'] = $organization; @@ -1663,7 +1673,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $installation = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($installation); after_installation: $result['installation'] = $installation; - $organization = $object->organization; + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($organization); after_organization: $result['organization'] = $organization; diff --git a/clients/GitHub/src/Internal/Operator/CodeSecurity/GetRepositoriesForConfiguration.php b/clients/GitHub/src/Internal/Operator/CodeSecurity/GetRepositoriesForConfiguration.php index ef5cb1683c8..319232c63c2 100644 --- a/clients/GitHub/src/Internal/Operator/CodeSecurity/GetRepositoriesForConfiguration.php +++ b/clients/GitHub/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\GitHub\Internal\Operation\CodeSecurity\GetRepositoriesForConfiguration($this->responseSchemaValidator, $this->hydrator, $org, $configurationId, $before, $after, $perPage, $status); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php index 7651841cbc8..3f7ddaedbc6 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 f5d8b15cbe3..60445099dae 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/CodeSecurity.php b/clients/GitHub/src/Internal/Router/Get/CodeSecurity.php index 9810a663dfb..de32945a026 100644 --- a/clients/GitHub/src/Internal/Router/Get/CodeSecurity.php +++ b/clients/GitHub/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/GitHub/src/Internal/Router/Get/Repos.php b/clients/GitHub/src/Internal/Router/Get/Repos.php index e3a1eab7118..ebfd9fb60b4 100644 --- a/clients/GitHub/src/Internal/Router/Get/Repos.php +++ b/clients/GitHub/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/GitHub/src/Internal/Router/Get/Seven.php b/clients/GitHub/src/Internal/Router/Get/Seven.php index 024182a4be8..1d2d5cf01b4 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 |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): OidcCustomSub|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|Json|WithoutBody|iterable|\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|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 acb2425d8ec..947d8f0c648 100644 --- a/clients/GitHub/src/Internal/Router/List/Repos.php +++ b/clients/GitHub/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/GitHub/src/Internal/Router/List/Seven.php b/clients/GitHub/src/Internal/Router/List/Seven.php index 0fbd8a1cfef..f2da1325c61 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|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/GitHub/src/Operation/CodeSecurity.php b/clients/GitHub/src/Operation/CodeSecurity.php index 19d28152f1d..97c48a33108 100644 --- a/clients/GitHub/src/Operation/CodeSecurity.php +++ b/clients/GitHub/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/GitHub/src/Operation/Repos.php b/clients/GitHub/src/Operation/Repos.php index 10788aadf25..bb60d9c94e1 100644 --- a/clients/GitHub/src/Operation/Repos.php +++ b/clients/GitHub/src/Operation/Repos.php @@ -1151,13 +1151,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 012f2df4f78..38b2eef6053 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -720,7 +720,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') { @@ -3412,11 +3412,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/WebhookCustomPropertyCreated.php b/clients/GitHub/src/Schema/WebhookCustomPropertyCreated.php index 487e9517a43..a9ebde3a4bb 100644 --- a/clients/GitHub/src/Schema/WebhookCustomPropertyCreated.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCustomPropertyDeleted.php b/clients/GitHub/src/Schema/WebhookCustomPropertyDeleted.php index de93d06885a..13a6fbed323 100644 --- a/clients/GitHub/src/Schema/WebhookCustomPropertyDeleted.php +++ b/clients/GitHub/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/GitHub/src/Schema/WebhookCustomPropertyUpdated.php b/clients/GitHub/src/Schema/WebhookCustomPropertyUpdated.php index 3fdb0adff94..affc48de792 100644 --- a/clients/GitHub/src/Schema/WebhookCustomPropertyUpdated.php +++ b/clients/GitHub/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/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index 3ed879564bd..df9838d1a7b 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -186,7 +186,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')); @@ -859,8 +859,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 58f58adbd3e..76ed46dcee1 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -103891,7 +103891,6 @@ components: required: - action - definition - - organization webhook-custom-property-deleted: title: custom property deleted event type: object @@ -103919,7 +103918,6 @@ components: required: - action - definition - - organization webhook-custom-property-updated: title: custom property updated event type: object @@ -103941,7 +103939,6 @@ components: required: - action - definition - - organization webhook-custom-property-values-updated: title: Custom property values updated event type: object