diff --git a/clients/GitHub/README.md b/clients/GitHub/README.md index 645715809d6..49ecb42d5ac 100644 --- a/clients/GitHub/README.md +++ b/clients/GitHub/README.md @@ -5064,62 +5064,6 @@ $client->operations()->copilot()->copilotMetricsForOrganizationListing( o You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-an-organization). -### copilot/usage-metrics-for-org - -Get a summary of Copilot usage for organization members - -Using the `call` method: -```php -$client->call('GET /orgs/{org}/copilot/usage', [ - 'org' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForOrg( org: 'generated', - since: 'generated', - until: 'generated', - page: 1, - per_page: 8, -); -``` - -You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-organization-members). - - -### copilot/usage-metrics-for-org - -Get a summary of Copilot usage for organization members - -Using the `call` method: -```php -$client->call('LIST /orgs/{org}/copilot/usage', [ - 'org' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForOrgListing( org: 'generated', - since: 'generated', - until: 'generated', - page: 1, - per_page: 8, -); -``` - -You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-organization-members). - - ### dependabot/list-alerts-for-org List Dependabot alerts for an organization @@ -9366,66 +9310,6 @@ $client->operations()->copilot()->copilotMetricsForTeamListing( org: 'gen You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-a-team). -### copilot/usage-metrics-for-team - -Get a summary of Copilot usage for a team - -Using the `call` method: -```php -$client->call('GET /orgs/{org}/team/{team_slug}/copilot/usage', [ - 'org' => 'generated', - 'team_slug' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForTeam( org: 'generated', - team_slug: 'generated', - since: 'generated', - until: 'generated', - page: 1, - per_page: 8, -); -``` - -You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team). - - -### copilot/usage-metrics-for-team - -Get a summary of Copilot usage for a team - -Using the `call` method: -```php -$client->call('LIST /orgs/{org}/team/{team_slug}/copilot/usage', [ - 'org' => 'generated', - 'team_slug' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForTeamListing( org: 'generated', - team_slug: 'generated', - since: 'generated', - until: 'generated', - page: 1, - per_page: 8, -); -``` - -You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team). - - ### teams/list List teams diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 7caf0d3fc6c..76ac589bb64 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "82b1087a8dddd5516c99b2197699c7e0", + "specHash": "55d97765ea3cb2894a2648379d436234", "generatedFiles": { "files": [ { @@ -5648,7 +5648,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/WebHooks.php", - "hash": "8e06faae0c1f83928f13fca56c080687" + "hash": "5e87e17620f2a239e6f7196fcd4a0a98" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietEB301A03\/Tiet504AADCF\/Tiet2FEB0C19\/TietF58BE94A.php", @@ -11596,7 +11596,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Copilot.php", - "hash": "5386ba4f053f8b06addfd3e116f8f239" + "hash": "7e8fc207164af17a15c60afa4a5096cf" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CheckAutomatedSecurityFixes.php", @@ -24396,7 +24396,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Copilot.php", - "hash": "8870c549432ff6bf472984f40ad36d03" + "hash": "e421affeb5724d2e223a833a9b099c6d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Pulls.php", @@ -24832,7 +24832,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "f5ec8d2962554a8e1637fe776cd73689" + "hash": "1470151f57b0bb2ed984fbcf0a6479fa" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", @@ -24840,7 +24840,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "07a5439e2e2ba1ce74ee3b591b121aea" + "hash": "92bf43c403f0f05df8f79db9dc8c3068" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -24936,7 +24936,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "7516af6b41f8a9d3b475684f306347be" + "hash": "b81eaa835bb21072d3811764248d3b57" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", @@ -24944,7 +24944,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "7579a0df9b97ccb18fd4808677b0fb20" + "hash": "87ee70baea774f897f7d4c1491a32786" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -25040,7 +25040,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operators.php", - "hash": "f2ceef7e71ccd284a09ce93ae9c220ff" + "hash": "ed308ca7a7ccf5c7eebd61022dfd4ed9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php", @@ -27032,7 +27032,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "245c69396bc3105967a88ad7efe55ac0" + "hash": "bc5667333bc20d054926ba14c188578e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php", @@ -27612,11 +27612,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "4f02e5b34a80cfafc1844f8d4fe755f8" + "hash": "8485757d6d972f201b9c70db93c29e29" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "082aa496c548d70ebcb9479d705b81ca" + "hash": "9becc8bfb24bfd145592db2e53c7d381" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -27724,7 +27724,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/WebHook\/Issues.php", - "hash": "8a83f8f543b2926d4a0f6f0f21198796" + "hash": "3723c4483e1b12a682b9cbdc39ee24fb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/WebHook\/Label.php", @@ -28008,7 +28008,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Issues.php", - "hash": "dc9c2dfe3a3aa4364434212e630c4b94" + "hash": "bd23d29e18e4082ea0fac363f9858904" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Label.php", @@ -28594,45 +28594,9 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Vulnerability\/Package.php", "hash": "d94656843729ac738d0d39b3c9c434c4" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForOrg.php", - "hash": "5bca15d0e2a35430dd664b5782752716" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForOrg.php", - "hash": "1ac482eba473efd056d763adfd064add" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForOrgTest.php", - "hash": "114b8da8e69c9c9e8c5edf8a505fdfdf" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForOrgListing.php", - "hash": "0fd83f6a977ebf1d5cbd36721eee9d42" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForOrgListing.php", - "hash": "50c1c053446f7b46b8bc54ea8969884c" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForOrgListingTest.php", - "hash": "fb300544d3616bd54c9079321779e656" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotUsageMetrics.php", - "hash": "566784795617796c70ef6618bc1b5d7b" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotUsageMetrics\/Breakdown.php", - "hash": "8cfce05d0569f5890f9931c256c8c1f9" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Copilot.php", - "hash": "e546bd03456028ce830f55778d2051f1" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Usage.php", - "hash": "8371ad7c6ffb9c94a5d5bd32db118807" + "hash": "f2f2ec5f12dd1893b65eeac5f4355a27" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksCodeScanningCommitOid.php", @@ -29854,30 +29818,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMergeQueue\/Parameters.php", "hash": "63ead8aaf1cd72853d94b3eb5ff59de1" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForTeam.php", - "hash": "113b3a54860b29bc12312d2cc4af45ce" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForTeam.php", - "hash": "69f9eecd27b4e8f83fdf9a703960383c" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForTeamTest.php", - "hash": "0941b1c9be05e43f7c68a610b167787a" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForTeamListing.php", - "hash": "8330bcfe41dbe83811fe156c079af711" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForTeamListing.php", - "hash": "f512dfba05563759a7300fb1d783d57b" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForTeamListingTest.php", - "hash": "a129221a550089c22fc71b36beb1beb4" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/SecretScanning\/CreatePushProtectionBypass.php", "hash": "0fdf70664c2f874a8b95b7a28b30c57b" @@ -29930,10 +29870,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/SecretScanning.php", "hash": "e9b48e37f29f3d15231b927f237b8828" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Team\/TeamSlug\/Copilot\/Usage.php", - "hash": "2b00fb60528bfaeb5f964cd186782e4c" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/PushProtectionBypasses.php", "hash": "70d7c83f4b3dcc00b0389c8592451317" @@ -32005,6 +31941,14 @@ { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyPromotedToEnterprise.php", "hash": "ae2c793115e89b5b5acde4596bc61330" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTyped.php", + "hash": "6b74b6a8490ebaa6af4bc7f656c28537" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUntyped.php", + "hash": "9130c6b8acbb8251bfbfa85c424f74b6" } ] }, diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Copilot/Usage.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Copilot/Usage.php deleted file mode 100644 index 3682a8fa080..00000000000 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Copilot/Usage.php +++ /dev/null @@ -1,286 +0,0 @@ - $className - * - * @return T - * - * @template T of object - */ - public function hydrateObject(string $className, array $payload): object - { - return match ($className) { - 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), - default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), - }; - } - - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError - { - $properties = []; - $missingFields = []; - try { - $value = $payload['message'] ?? null; - - if ($value === null) { - $properties['message'] = null; - goto after_message; - } - - $properties['message'] = $value; - - after_message: - - $value = $payload['documentation_url'] ?? null; - - if ($value === null) { - $properties['documentationUrl'] = null; - goto after_documentationUrl; - } - - $properties['documentationUrl'] = $value; - - after_documentationUrl: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $properties['url'] = null; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['status'] ?? null; - - if ($value === null) { - $properties['status'] = null; - goto after_status; - } - - $properties['status'] = $value; - - after_status: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\BasicError', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new BasicError(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\BasicError', $exception, stack: $this->hydrationStack); - } - } - - private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array - { - foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { - if (is_a($object, $valueType)) { - return [$accessor => $payloadType] + $this->{$method}($object); - } - } - - throw new LogicException('No type mapped for object of class: ' . $object::class); - } - - public function serializeObject(object $object): mixed - { - return $this->serializeObjectOfType($object, $object::class); - } - - /** - * @param T $object - * @param class-string $className - * - * @template T - */ - public function serializeObjectOfType(object $object, string $className): mixed - { - try { - return match ($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), - default => throw new LogicException("No serialization defined for $className"), - }; - } catch (Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); - } - } - - private function serializeValuearray(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeArrayItems(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeUuidToString(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTimeImmutable(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTimeInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed - { - assert($object instanceof BasicError); - $result = []; - - $message = $object->message; - - if ($message === null) { - goto after_message; - } - - after_message: $result['message'] = $message; - - $documentationUrl = $object->documentationUrl; - - if ($documentationUrl === null) { - goto after_documentationUrl; - } - - after_documentationUrl: $result['documentation_url'] = $documentationUrl; - - $url = $object->url; - - if ($url === null) { - goto after_url; - } - - after_url: $result['url'] = $url; - - $status = $object->status; - - if ($status === null) { - goto after_status; - } - - after_status: $result['status'] = $status; - - return $result; - } - - /** - * @param class-string $className - * @param iterable $payloads; - * - * @return IterableList - * - * @throws UnableToHydrateObject - * - * @template T - */ - public function hydrateObjects(string $className, iterable $payloads): IterableList - { - return new IterableList($this->doHydrateObjects($className, $payloads)); - } - - private function doHydrateObjects(string $className, iterable $payloads): Generator - { - foreach ($payloads as $index => $payload) { - yield $index => $this->hydrateObject($className, $payload); - } - } - - /** - * @param class-string $className - * @param iterable $payloads; - * - * @return IterableList - * - * @throws UnableToSerializeObject - * - * @template T - */ - public function serializeObjects(iterable $payloads): IterableList - { - return new IterableList($this->doSerializeObjects($payloads)); - } - - private function doSerializeObjects(iterable $objects): Generator - { - foreach ($objects as $index => $object) { - yield $index => $this->serializeObject($object); - } - } -} diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Team/TeamSlug/Copilot/Usage.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Team/TeamSlug/Copilot/Usage.php deleted file mode 100644 index a6565b97128..00000000000 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Team/TeamSlug/Copilot/Usage.php +++ /dev/null @@ -1,286 +0,0 @@ - $className - * - * @return T - * - * @template T of object - */ - public function hydrateObject(string $className, array $payload): object - { - return match ($className) { - 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), - default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), - }; - } - - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError - { - $properties = []; - $missingFields = []; - try { - $value = $payload['message'] ?? null; - - if ($value === null) { - $properties['message'] = null; - goto after_message; - } - - $properties['message'] = $value; - - after_message: - - $value = $payload['documentation_url'] ?? null; - - if ($value === null) { - $properties['documentationUrl'] = null; - goto after_documentationUrl; - } - - $properties['documentationUrl'] = $value; - - after_documentationUrl: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $properties['url'] = null; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['status'] ?? null; - - if ($value === null) { - $properties['status'] = null; - goto after_status; - } - - $properties['status'] = $value; - - after_status: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\BasicError', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new BasicError(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\BasicError', $exception, stack: $this->hydrationStack); - } - } - - private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array - { - foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { - if (is_a($object, $valueType)) { - return [$accessor => $payloadType] + $this->{$method}($object); - } - } - - throw new LogicException('No type mapped for object of class: ' . $object::class); - } - - public function serializeObject(object $object): mixed - { - return $this->serializeObjectOfType($object, $object::class); - } - - /** - * @param T $object - * @param class-string $className - * - * @template T - */ - public function serializeObjectOfType(object $object, string $className): mixed - { - try { - return match ($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), - default => throw new LogicException("No serialization defined for $className"), - }; - } catch (Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); - } - } - - private function serializeValuearray(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeArrayItems(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeUuidToString(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTimeImmutable(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTimeInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed - { - assert($object instanceof BasicError); - $result = []; - - $message = $object->message; - - if ($message === null) { - goto after_message; - } - - after_message: $result['message'] = $message; - - $documentationUrl = $object->documentationUrl; - - if ($documentationUrl === null) { - goto after_documentationUrl; - } - - after_documentationUrl: $result['documentation_url'] = $documentationUrl; - - $url = $object->url; - - if ($url === null) { - goto after_url; - } - - after_url: $result['url'] = $url; - - $status = $object->status; - - if ($status === null) { - goto after_status; - } - - after_status: $result['status'] = $status; - - return $result; - } - - /** - * @param class-string $className - * @param iterable $payloads; - * - * @return IterableList - * - * @throws UnableToHydrateObject - * - * @template T - */ - public function hydrateObjects(string $className, iterable $payloads): IterableList - { - return new IterableList($this->doHydrateObjects($className, $payloads)); - } - - private function doHydrateObjects(string $className, iterable $payloads): Generator - { - foreach ($payloads as $index => $payload) { - yield $index => $this->hydrateObject($className, $payload); - } - } - - /** - * @param class-string $className - * @param iterable $payloads; - * - * @return IterableList - * - * @throws UnableToSerializeObject - * - * @template T - */ - public function serializeObjects(iterable $payloads): IterableList - { - return new IterableList($this->doSerializeObjects($payloads)); - } - - private function doSerializeObjects(iterable $objects): Generator - { - foreach ($objects as $index => $object) { - yield $index => $this->serializeObject($object); - } - } -} diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php index 2628c90068d..5fa9dd5c73e 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php @@ -34,10 +34,12 @@ use ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred; use ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue; use ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository; +use ApiClients\Client\GitHub\Schema\WebhookIssuesTyped; use ApiClients\Client\GitHub\Schema\WebhookIssuesUnassigned; use ApiClients\Client\GitHub\Schema\WebhookIssuesUnlabeled; use ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked; use ApiClients\Client\GitHub\Schema\WebhookIssuesUnpinned; +use ApiClients\Client\GitHub\Schema\WebhookIssuesUntyped; use ApiClients\Client\GitHub\Schema\WebhooksIssue; use ApiClients\Client\GitHub\Schema\WebhooksIssue\Assignee; use ApiClients\Client\GitHub\Schema\WebhooksIssue\Milestone; @@ -272,6 +274,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️License($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️Permissions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesTyped' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTyped($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnassigned' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnassigned($payload), 'ApiClients\Client\GitHub\Schema\WebhooksUserMannequin' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksUserMannequin($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlabeled' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlabeled($payload), @@ -288,6 +291,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnpinned' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnpinned($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesUntyped' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUntyped($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository⚡️CustomProperties($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️CustomProperties($payload), @@ -42266,6 +42270,176 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTyped(array $payload): WebhookIssuesTyped + { + $properties = []; + $missingFields = []; + try { + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $properties['enterprise'] = null; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $properties['installation'] = null; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['issue'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue'; + goto after_issue; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['issue'] = $value; + + after_issue: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $properties['organization'] = null; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesTyped', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(WebhookIssuesTyped::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new WebhookIssuesTyped(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesTyped', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnassigned(array $payload): WebhookIssuesUnassigned { $properties = []; @@ -45686,6 +45860,176 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUntyped(array $payload): WebhookIssuesUntyped + { + $properties = []; + $missingFields = []; + try { + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $properties['enterprise'] = null; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $properties['installation'] = null; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['issue'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue'; + goto after_issue; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['issue'] = $value; + + after_issue: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $properties['organization'] = null; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesUntyped', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(WebhookIssuesUntyped::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new WebhookIssuesUntyped(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesUntyped', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -45960,6 +46304,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️License($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️Permissions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesTyped' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTyped($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnassigned' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnassigned($object), 'ApiClients\Client\GitHub\Schema\WebhooksUserMannequin' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksUserMannequin($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlabeled' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlabeled($object), @@ -45976,6 +46321,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnpinned' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnpinned($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesUntyped' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUntyped($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -69335,6 +69681,65 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTyped(mixed $object): mixed + { + assert($object instanceof WebhookIssuesTyped); + $result = []; + + $action = $object->action; + after_action: $result['action'] = $action; + + $enterprise = $object->enterprise; + + if ($enterprise === null) { + goto after_enterprise; + } + + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + $installation = $object->installation; + + if ($installation === null) { + goto after_installation; + } + + $installation = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + $issue = $object->issue; + $issue = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue($issue); + after_issue: $result['issue'] = $issue; + + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + + $organization = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($organization); + after_organization: $result['organization'] = $organization; + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks($repository); + after_repository: $result['repository'] = $repository; + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnassigned(mixed $object): mixed { assert($object instanceof WebhookIssuesUnassigned); @@ -71190,6 +71595,65 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUntyped(mixed $object): mixed + { + assert($object instanceof WebhookIssuesUntyped); + $result = []; + + $action = $object->action; + after_action: $result['action'] = $action; + + $enterprise = $object->enterprise; + + if ($enterprise === null) { + goto after_enterprise; + } + + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + $installation = $object->installation; + + if ($installation === null) { + goto after_installation; + } + + $installation = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + $issue = $object->issue; + $issue = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue($issue); + after_issue: $result['issue'] = $issue; + + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + + $organization = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($organization); + after_organization: $result['organization'] = $organization; + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks($repository); + after_repository: $result['repository'] = $repository; + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + return $result; + } + /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrators.php b/clients/GitHub/src/Internal/Hydrators.php index 24ac42bb147..8085a406ed6 100644 --- a/clients/GitHub/src/Internal/Hydrators.php +++ b/clients/GitHub/src/Internal/Hydrators.php @@ -145,7 +145,6 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Orgs\Org\Copilot\Billing\SelectedTeams|null $operation🌀Orgs🌀Org🌀Copilot🌀Billing🌀SelectedTeams = null; private Internal\Hydrator\Operation\Orgs\Org\Copilot\Billing\SelectedUsers|null $operation🌀Orgs🌀Org🌀Copilot🌀Billing🌀SelectedUsers = null; private Internal\Hydrator\Operation\Orgs\Org\Copilot\Metrics|null $operation🌀Orgs🌀Org🌀Copilot🌀Metrics = null; - private Internal\Hydrator\Operation\Orgs\Org\Copilot\Usage|null $operation🌀Orgs🌀Org🌀Copilot🌀Usage = null; private Internal\Hydrator\Operation\Orgs\Org\Dependabot\Alerts|null $operation🌀Orgs🌀Org🌀Dependabot🌀Alerts = null; private Internal\Hydrator\Operation\Orgs\Org\Dependabot\Secrets|null $operation🌀Orgs🌀Org🌀Dependabot🌀Secrets = null; private Internal\Hydrator\Operation\Orgs\Org\Dependabot\Secrets\PublicKey|null $operation🌀Orgs🌀Org🌀Dependabot🌀Secrets🌀PublicKey = null; @@ -241,7 +240,6 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Orgs\Org\Settings\NetworkConfigurations\NetworkConfigurationId|null $operation🌀Orgs🌀Org🌀Settings🌀NetworkConfigurations🌀NetworkConfigurationId = null; private Internal\Hydrator\Operation\Orgs\Org\Settings\NetworkSettings\NetworkSettingsId|null $operation🌀Orgs🌀Org🌀Settings🌀NetworkSettings🌀NetworkSettingsId = null; private Internal\Hydrator\Operation\Orgs\Org\Team\TeamSlug\Copilot\Metrics|null $operation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Metrics = null; - private Internal\Hydrator\Operation\Orgs\Org\Team\TeamSlug\Copilot\Usage|null $operation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage = null; private Internal\Hydrator\Operation\Orgs\Org\Teams|null $operation🌀Orgs🌀Org🌀Teams = null; private Internal\Hydrator\Operation\Orgs\Org\Teams\TeamSlug|null $operation🌀Orgs🌀Org🌀Teams🌀TeamSlug = null; private Internal\Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions|null $operation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Discussions = null; @@ -1075,7 +1073,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationRepositoriesAdded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationRepositoriesRemoved' => $this->getObjectMapperWebHook🪝InstallationRepositories()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Login', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Slug' => $this->getObjectMapperWebHook🪝InstallationTarget()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksChanges', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksChanges\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\User' => $this->getObjectMapperWebHook🪝IssueComment()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🪝Issues()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTyped', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnpinned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUntyped' => $this->getObjectMapperWebHook🪝Issues()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes\\Color', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes\\Description', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes\\Name' => $this->getObjectMapperWebHook🪝Label()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseCancelled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksPreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksPreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksPreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePurchased' => $this->getObjectMapperWebHook🪝MarketplacePurchase()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded\\Changes\\Permission', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded\\Changes\\RoleName', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited\\Changes\\OldPermission', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited\\Changes\\Permission', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberRemoved' => $this->getObjectMapperWebHook🪝Member()->hydrateObject($className, $payload), @@ -1454,7 +1452,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationRepositoriesAdded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationRepositoriesRemoved' => $this->getObjectMapperWebHook🪝InstallationRepositories()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Login', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Slug' => $this->getObjectMapperWebHook🪝InstallationTarget()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksChanges', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksChanges\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\User' => $this->getObjectMapperWebHook🪝IssueComment()->serializeObject($object), - '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🪝Issues()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTyped', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnpinned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUntyped' => $this->getObjectMapperWebHook🪝Issues()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes\\Color', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes\\Description', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes\\Name' => $this->getObjectMapperWebHook🪝Label()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseCancelled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksPreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksPreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksPreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePurchased' => $this->getObjectMapperWebHook🪝MarketplacePurchase()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded\\Changes\\Permission', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded\\Changes\\RoleName', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited\\Changes\\OldPermission', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited\\Changes\\Permission', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberRemoved' => $this->getObjectMapperWebHook🪝Member()->serializeObject($object), @@ -2724,15 +2722,6 @@ public function getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Metrics(): return $this->operation🌀Orgs🌀Org🌀Copilot🌀Metrics; } - public function getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Usage(): Internal\Hydrator\Operation\Orgs\Org\Copilot\Usage - { - if ($this->operation🌀Orgs🌀Org🌀Copilot🌀Usage instanceof Internal\Hydrator\Operation\Orgs\Org\Copilot\Usage === false) { - $this->operation🌀Orgs🌀Org🌀Copilot🌀Usage = new Internal\Hydrator\Operation\Orgs\Org\Copilot\Usage(); - } - - return $this->operation🌀Orgs🌀Org🌀Copilot🌀Usage; - } - public function getObjectMapperOperation🌀Orgs🌀Org🌀Dependabot🌀Alerts(): Internal\Hydrator\Operation\Orgs\Org\Dependabot\Alerts { if ($this->operation🌀Orgs🌀Org🌀Dependabot🌀Alerts instanceof Internal\Hydrator\Operation\Orgs\Org\Dependabot\Alerts === false) { @@ -3588,15 +3577,6 @@ public function getObjectMapperOperation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀C return $this->operation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Metrics; } - public function getObjectMapperOperation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage(): Internal\Hydrator\Operation\Orgs\Org\Team\TeamSlug\Copilot\Usage - { - if ($this->operation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage instanceof Internal\Hydrator\Operation\Orgs\Org\Team\TeamSlug\Copilot\Usage === false) { - $this->operation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage = new Internal\Hydrator\Operation\Orgs\Org\Team\TeamSlug\Copilot\Usage(); - } - - return $this->operation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage; - } - public function getObjectMapperOperation🌀Orgs🌀Org🌀Teams(): Internal\Hydrator\Operation\Orgs\Org\Teams { if ($this->operation🌀Orgs🌀Org🌀Teams instanceof Internal\Hydrator\Operation\Orgs\Org\Teams === false) { diff --git a/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForOrg.php b/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForOrg.php deleted file mode 100644 index 07c448d7f2d..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForOrg.php +++ /dev/null @@ -1,118 +0,0 @@ -org = $org; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{org}', '{since}', '{until}', '{page}', '{per_page}'], [$this->org, $this->since, $this->until, $this->page, $this->perPage], '/orgs/{org}/copilot/usage' . '?since={since}&until={until}&page={page}&per_page={per_page}')); - } - - /** @return Observable */ - public function createResponse(ResponseInterface $response): Observable - { - $code = $response->getStatusCode(); - [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); - switch ($contentType) { - case 'application/json': - $body = json_decode($response->getBody()->getContents(), true); - switch ($code) { - /** - * Response - **/ - case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CopilotUsageMetrics { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetrics::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetrics::class, $body); - } catch (Throwable $error) { - goto items_application_json_two_hundred_aaaaa; - } - - items_application_json_two_hundred_aaaaa: - throw $error; - }); - /** - * Internal Error - **/ - - case 500: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Requires authentication - **/ - - case 401: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Forbidden - **/ - - case 403: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Resource not found - **/ - - case 404: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - } - - break; - } - - throw new RuntimeException('Unable to find matching response code and content type'); - } -} diff --git a/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForOrgListing.php b/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForOrgListing.php deleted file mode 100644 index d0d0ba87943..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForOrgListing.php +++ /dev/null @@ -1,118 +0,0 @@ -org = $org; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{org}', '{since}', '{until}', '{page}', '{per_page}'], [$this->org, $this->since, $this->until, $this->page, $this->perPage], '/orgs/{org}/copilot/usage' . '?since={since}&until={until}&page={page}&per_page={per_page}')); - } - - /** @return Observable */ - public function createResponse(ResponseInterface $response): Observable - { - $code = $response->getStatusCode(); - [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); - switch ($contentType) { - case 'application/json': - $body = json_decode($response->getBody()->getContents(), true); - switch ($code) { - /** - * Response - **/ - case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CopilotUsageMetrics { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetrics::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetrics::class, $body); - } catch (Throwable $error) { - goto items_application_json_two_hundred_aaaaa; - } - - items_application_json_two_hundred_aaaaa: - throw $error; - }); - /** - * Internal Error - **/ - - case 500: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Requires authentication - **/ - - case 401: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Forbidden - **/ - - case 403: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Resource not found - **/ - - case 404: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - } - - break; - } - - throw new RuntimeException('Unable to find matching response code and content type'); - } -} diff --git a/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForTeam.php b/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForTeam.php deleted file mode 100644 index 0bc9ecb959c..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForTeam.php +++ /dev/null @@ -1,121 +0,0 @@ -org = $org; - $this->teamSlug = $teamSlug; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{org}', '{team_slug}', '{since}', '{until}', '{page}', '{per_page}'], [$this->org, $this->teamSlug, $this->since, $this->until, $this->page, $this->perPage], '/orgs/{org}/team/{team_slug}/copilot/usage' . '?since={since}&until={until}&page={page}&per_page={per_page}')); - } - - /** @return Observable */ - public function createResponse(ResponseInterface $response): Observable - { - $code = $response->getStatusCode(); - [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); - switch ($contentType) { - case 'application/json': - $body = json_decode($response->getBody()->getContents(), true); - switch ($code) { - /** - * Response - **/ - case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CopilotUsageMetrics { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetrics::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetrics::class, $body); - } catch (Throwable $error) { - goto items_application_json_two_hundred_aaaaa; - } - - items_application_json_two_hundred_aaaaa: - throw $error; - }); - /** - * Internal Error - **/ - - case 500: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Requires authentication - **/ - - case 401: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Forbidden - **/ - - case 403: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Resource not found - **/ - - case 404: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - } - - break; - } - - throw new RuntimeException('Unable to find matching response code and content type'); - } -} diff --git a/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForTeamListing.php b/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForTeamListing.php deleted file mode 100644 index 21edf5b4669..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForTeamListing.php +++ /dev/null @@ -1,121 +0,0 @@ -org = $org; - $this->teamSlug = $teamSlug; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{org}', '{team_slug}', '{since}', '{until}', '{page}', '{per_page}'], [$this->org, $this->teamSlug, $this->since, $this->until, $this->page, $this->perPage], '/orgs/{org}/team/{team_slug}/copilot/usage' . '?since={since}&until={until}&page={page}&per_page={per_page}')); - } - - /** @return Observable */ - public function createResponse(ResponseInterface $response): Observable - { - $code = $response->getStatusCode(); - [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); - switch ($contentType) { - case 'application/json': - $body = json_decode($response->getBody()->getContents(), true); - switch ($code) { - /** - * Response - **/ - case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CopilotUsageMetrics { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetrics::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetrics::class, $body); - } catch (Throwable $error) { - goto items_application_json_two_hundred_aaaaa; - } - - items_application_json_two_hundred_aaaaa: - throw $error; - }); - /** - * Internal Error - **/ - - case 500: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Requires authentication - **/ - - case 401: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Forbidden - **/ - - case 403: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Resource not found - **/ - - case 404: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - } - - break; - } - - throw new RuntimeException('Unable to find matching response code and content type'); - } -} diff --git a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForOrg.php b/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForOrg.php deleted file mode 100644 index e02a56f7fa2..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForOrg.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $org, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\UsageMetricsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $since, $until, $page, $perPage); - $request = $operation->createRequest(); - $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForOrgListing.php b/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForOrgListing.php deleted file mode 100644 index a9fb40b969b..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForOrgListing.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $org, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\UsageMetricsForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $since, $until, $page, $perPage); - $request = $operation->createRequest(); - $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForTeam.php b/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForTeam.php deleted file mode 100644 index 96e9a68bfcf..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForTeam.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $org, string $teamSlug, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\UsageMetricsForTeam($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $since, $until, $page, $perPage); - $request = $operation->createRequest(); - $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForTeamListing.php b/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForTeamListing.php deleted file mode 100644 index 73ad7c6c03a..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForTeamListing.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $org, string $teamSlug, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\UsageMetricsForTeamListing($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $since, $until, $page, $perPage); - $request = $operation->createRequest(); - $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHub/src/Internal/Operators.php b/clients/GitHub/src/Internal/Operators.php index 666f6cba461..1405e57a4a0 100644 --- a/clients/GitHub/src/Internal/Operators.php +++ b/clients/GitHub/src/Internal/Operators.php @@ -233,8 +233,6 @@ final class Operators private Internal\Operator\Copilot\CancelCopilotSeatAssignmentForUsers|null $copilot👷CancelCopilotSeatAssignmentForUsers = null; private Internal\Operator\Copilot\CopilotMetricsForOrganization|null $copilot👷CopilotMetricsForOrganization = null; private Internal\Operator\Copilot\CopilotMetricsForOrganizationListing|null $copilot👷CopilotMetricsForOrganizationListing = null; - private Internal\Operator\Copilot\UsageMetricsForOrg|null $copilot👷UsageMetricsForOrg = null; - private Internal\Operator\Copilot\UsageMetricsForOrgListing|null $copilot👷UsageMetricsForOrgListing = null; private Internal\Operator\Dependabot\ListAlertsForOrg|null $dependabot👷ListAlertsForOrg = null; private Internal\Operator\Dependabot\ListOrgSecrets|null $dependabot👷ListOrgSecrets = null; private Internal\Operator\Dependabot\GetOrgPublicKey|null $dependabot👷GetOrgPublicKey = null; @@ -404,8 +402,6 @@ final class Operators private Internal\Operator\HostedCompute\GetNetworkSettingsForOrg|null $hostedCompute👷GetNetworkSettingsForOrg = null; private Internal\Operator\Copilot\CopilotMetricsForTeam|null $copilot👷CopilotMetricsForTeam = null; private Internal\Operator\Copilot\CopilotMetricsForTeamListing|null $copilot👷CopilotMetricsForTeamListing = null; - private Internal\Operator\Copilot\UsageMetricsForTeam|null $copilot👷UsageMetricsForTeam = null; - private Internal\Operator\Copilot\UsageMetricsForTeamListing|null $copilot👷UsageMetricsForTeamListing = null; private Internal\Operator\Teams\List_|null $teams👷List_ = null; private Internal\Operator\Teams\ListListing|null $teams👷ListListing = null; private Internal\Operator\Teams\Create|null $teams👷Create = null; @@ -3219,24 +3215,6 @@ public function copilot👷CopilotMetricsForOrganizationListing(): Internal\Oper return $this->copilot👷CopilotMetricsForOrganizationListing; } - public function copilot👷UsageMetricsForOrg(): Internal\Operator\Copilot\UsageMetricsForOrg - { - if ($this->copilot👷UsageMetricsForOrg instanceof Internal\Operator\Copilot\UsageMetricsForOrg === false) { - $this->copilot👷UsageMetricsForOrg = new Internal\Operator\Copilot\UsageMetricsForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForOrg; - } - - public function copilot👷UsageMetricsForOrgListing(): Internal\Operator\Copilot\UsageMetricsForOrgListing - { - if ($this->copilot👷UsageMetricsForOrgListing instanceof Internal\Operator\Copilot\UsageMetricsForOrgListing === false) { - $this->copilot👷UsageMetricsForOrgListing = new Internal\Operator\Copilot\UsageMetricsForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForOrgListing; - } - public function dependabot👷ListAlertsForOrg(): Internal\Operator\Dependabot\ListAlertsForOrg { if ($this->dependabot👷ListAlertsForOrg instanceof Internal\Operator\Dependabot\ListAlertsForOrg === false) { @@ -4758,24 +4736,6 @@ public function copilot👷CopilotMetricsForTeamListing(): Internal\Operator\Cop return $this->copilot👷CopilotMetricsForTeamListing; } - public function copilot👷UsageMetricsForTeam(): Internal\Operator\Copilot\UsageMetricsForTeam - { - if ($this->copilot👷UsageMetricsForTeam instanceof Internal\Operator\Copilot\UsageMetricsForTeam === false) { - $this->copilot👷UsageMetricsForTeam = new Internal\Operator\Copilot\UsageMetricsForTeam($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForTeam; - } - - public function copilot👷UsageMetricsForTeamListing(): Internal\Operator\Copilot\UsageMetricsForTeamListing - { - if ($this->copilot👷UsageMetricsForTeamListing instanceof Internal\Operator\Copilot\UsageMetricsForTeamListing === false) { - $this->copilot👷UsageMetricsForTeamListing = new Internal\Operator\Copilot\UsageMetricsForTeamListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForTeamListing; - } - public function teams👷List_(): Internal\Operator\Teams\List_ { if ($this->teams👷List_ instanceof Internal\Operator\Teams\List_ === false) { diff --git a/clients/GitHub/src/Internal/Router/Get/Copilot.php b/clients/GitHub/src/Internal/Router/Get/Copilot.php index 3bbe3d50797..3a2840d577d 100644 --- a/clients/GitHub/src/Internal/Router/Get/Copilot.php +++ b/clients/GitHub/src/Internal/Router/Get/Copilot.php @@ -77,45 +77,6 @@ public function copilotMetricsForOrganization(array $params): iterable return $operator->call($arguments['org'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); } - /** @return Observable */ - public function usageMetricsForOrg(array $params): iterable - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); - } - - $arguments['since'] = $params['since']; - unset($params['since']); - if (array_key_exists('until', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: until'); - } - - $arguments['until'] = $params['until']; - unset($params['until']); - if (array_key_exists('page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: page'); - } - - $arguments['page'] = $params['page']; - unset($params['page']); - if (array_key_exists('per_page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: per_page'); - } - - $arguments['per_page'] = $params['per_page']; - unset($params['per_page']); - $operator = new Internal\Operator\Copilot\UsageMetricsForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Usage()); - - return $operator->call($arguments['org'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); - } - /** @return */ public function listCopilotSeats(array $params): Ok { @@ -208,49 +169,4 @@ public function copilotMetricsForTeam(array $params): iterable return $operator->call($arguments['org'], $arguments['team_slug'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); } - - /** @return Observable */ - public function usageMetricsForTeam(array $params): iterable - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('team_slug', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: team_slug'); - } - - $arguments['team_slug'] = $params['team_slug']; - unset($params['team_slug']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); - } - - $arguments['since'] = $params['since']; - unset($params['since']); - if (array_key_exists('until', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: until'); - } - - $arguments['until'] = $params['until']; - unset($params['until']); - if (array_key_exists('page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: page'); - } - - $arguments['page'] = $params['page']; - unset($params['page']); - if (array_key_exists('per_page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: per_page'); - } - - $arguments['per_page'] = $params['per_page']; - unset($params['per_page']); - $operator = new Internal\Operator\Copilot\UsageMetricsForTeam($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - - return $operator->call($arguments['org'], $arguments['team_slug'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); - } } diff --git a/clients/GitHub/src/Internal/Router/Get/Five.php b/clients/GitHub/src/Internal/Router/Get/Five.php index ce6e9d9bba2..e52bafc9f6c 100644 --- a/clients/GitHub/src/Internal/Router/Get/Five.php +++ b/clients/GitHub/src/Internal/Router/Get/Five.php @@ -52,7 +52,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|Ok|ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|OrgHook|OrgMembership|Migration|OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|OrgPrivateRegistryConfiguration|RepositoryRuleset|\ApiClients\Client\GitHub\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok\Application\Json|EmptyObject { if ($pathChunks[0] === '') { @@ -203,10 +203,6 @@ public function call(string $call, array $params, array $pathChunks): HookDelive if ($call === 'GET /orgs/{org}/copilot/metrics') { return $this->routers->internal🔀Router🔀Get🔀Copilot()->copilotMetricsForOrganization($params); } - } elseif ($pathChunks[4] === 'usage') { - if ($call === 'GET /orgs/{org}/copilot/usage') { - return $this->routers->internal🔀Router🔀Get🔀Copilot()->usageMetricsForOrg($params); - } } } elseif ($pathChunks[3] === 'dependabot') { if ($pathChunks[4] === 'alerts') { diff --git a/clients/GitHub/src/Internal/Router/Get/Seven.php b/clients/GitHub/src/Internal/Router/Get/Seven.php index b119f05f5a7..2bf6a6dc0c4 100644 --- a/clients/GitHub/src/Internal/Router/Get/Seven.php +++ b/clients/GitHub/src/Internal/Router/Get/Seven.php @@ -64,7 +64,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|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|Observable */ + /** @return Observable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|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|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|Ok|Json|OidcCustomSub|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\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|RulesetVersion|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] === '') { @@ -223,10 +223,6 @@ public function call(string $call, array $params, array $pathChunks): iterable|O if ($call === 'GET /orgs/{org}/team/{team_slug}/copilot/metrics') { return $this->routers->internal🔀Router🔀Get🔀Copilot()->copilotMetricsForTeam($params); } - } elseif ($pathChunks[6] === 'usage') { - if ($call === 'GET /orgs/{org}/team/{team_slug}/copilot/usage') { - return $this->routers->internal🔀Router🔀Get🔀Copilot()->usageMetricsForTeam($params); - } } } } diff --git a/clients/GitHub/src/Internal/Router/List/Copilot.php b/clients/GitHub/src/Internal/Router/List/Copilot.php index c12f3d7f8b3..b1cbfe59de9 100644 --- a/clients/GitHub/src/Internal/Router/List/Copilot.php +++ b/clients/GitHub/src/Internal/Router/List/Copilot.php @@ -65,51 +65,6 @@ public function copilotMetricsForOrganizationListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function usageMetricsForOrgListing(array $params): iterable - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); - } - - $arguments['since'] = $params['since']; - unset($params['since']); - if (array_key_exists('until', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: until'); - } - - $arguments['until'] = $params['until']; - unset($params['until']); - if (array_key_exists('page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: page'); - } - - $arguments['page'] = $params['page']; - unset($params['page']); - if (array_key_exists('per_page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: per_page'); - } - - $arguments['per_page'] = $params['per_page']; - unset($params['per_page']); - $arguments['page'] = 1; - do { - $operator = new Internal\Operator\Copilot\UsageMetricsForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Usage()); - $items = [...$operator->call($arguments['org'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page'])]; - - yield from $items; - - $arguments['page']++; - } while (count($items) > 0); - } - /** @return Observable */ public function copilotMetricsForTeamListing(array $params): iterable { @@ -160,55 +115,4 @@ public function copilotMetricsForTeamListing(array $params): iterable $arguments['page']++; } while (count($items) > 0); } - - /** @return Observable */ - public function usageMetricsForTeamListing(array $params): iterable - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('team_slug', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: team_slug'); - } - - $arguments['team_slug'] = $params['team_slug']; - unset($params['team_slug']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); - } - - $arguments['since'] = $params['since']; - unset($params['since']); - if (array_key_exists('until', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: until'); - } - - $arguments['until'] = $params['until']; - unset($params['until']); - if (array_key_exists('page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: page'); - } - - $arguments['page'] = $params['page']; - unset($params['page']); - if (array_key_exists('per_page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: per_page'); - } - - $arguments['per_page'] = $params['per_page']; - unset($params['per_page']); - $arguments['page'] = 1; - do { - $operator = new Internal\Operator\Copilot\UsageMetricsForTeamListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - $items = [...$operator->call($arguments['org'], $arguments['team_slug'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page'])]; - - yield from $items; - - $arguments['page']++; - } while (count($items) > 0); - } } diff --git a/clients/GitHub/src/Internal/Router/List/Five.php b/clients/GitHub/src/Internal/Router/List/Five.php index 8da240fa0c8..49479c51c7c 100644 --- a/clients/GitHub/src/Internal/Router/List/Five.php +++ b/clients/GitHub/src/Internal/Router/List/Five.php @@ -16,7 +16,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Schema\BasicError|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|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Schema\BasicError|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|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { @@ -53,10 +53,6 @@ public function call(string $call, array $params, array $pathChunks): iterable|B if ($call === 'LIST /orgs/{org}/copilot/metrics') { return $this->routers->internal🔀Router🔀List🔀Copilot()->copilotMetricsForOrganizationListing($params); } - } elseif ($pathChunks[4] === 'usage') { - if ($call === 'LIST /orgs/{org}/copilot/usage') { - return $this->routers->internal🔀Router🔀List🔀Copilot()->usageMetricsForOrgListing($params); - } } } elseif ($pathChunks[3] === 'properties') { if ($pathChunks[4] === 'values') { diff --git a/clients/GitHub/src/Internal/Router/List/Seven.php b/clients/GitHub/src/Internal/Router/List/Seven.php index 326ad672df5..2a23a2e48f0 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|Observable|Observable|Schema\BasicError|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 */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|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 */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError { if ($pathChunks[0] === '') { @@ -47,10 +47,6 @@ public function call(string $call, array $params, array $pathChunks): iterable|B if ($call === 'LIST /orgs/{org}/team/{team_slug}/copilot/metrics') { return $this->routers->internal🔀Router🔀List🔀Copilot()->copilotMetricsForTeamListing($params); } - } elseif ($pathChunks[6] === 'usage') { - if ($call === 'LIST /orgs/{org}/team/{team_slug}/copilot/usage') { - return $this->routers->internal🔀Router🔀List🔀Copilot()->usageMetricsForTeamListing($params); - } } } } diff --git a/clients/GitHub/src/Internal/WebHook/Issues.php b/clients/GitHub/src/Internal/WebHook/Issues.php index e7ebbb1d74a..3b4734ab8e9 100644 --- a/clients/GitHub/src/Internal/WebHook/Issues.php +++ b/clients/GitHub/src/Internal/WebHook/Issues.php @@ -19,7 +19,7 @@ public function __construct(private readonly SchemaValidator $requestSchemaValid { } - public function resolve(array $headers, array $data): Schema\WebhookIssuesAssigned|Schema\WebhookIssuesClosed|Schema\WebhookIssuesDeleted|Schema\WebhookIssuesDemilestoned|Schema\WebhookIssuesEdited|Schema\WebhookIssuesLabeled|Schema\WebhookIssuesLocked|Schema\WebhookIssuesMilestoned|Schema\WebhookIssuesOpened|Schema\WebhookIssuesPinned|Schema\WebhookIssuesReopened|Schema\WebhookIssuesTransferred|Schema\WebhookIssuesUnassigned|Schema\WebhookIssuesUnlabeled|Schema\WebhookIssuesUnlocked|Schema\WebhookIssuesUnpinned + public function resolve(array $headers, array $data): Schema\WebhookIssuesAssigned|Schema\WebhookIssuesClosed|Schema\WebhookIssuesDeleted|Schema\WebhookIssuesDemilestoned|Schema\WebhookIssuesEdited|Schema\WebhookIssuesLabeled|Schema\WebhookIssuesLocked|Schema\WebhookIssuesMilestoned|Schema\WebhookIssuesOpened|Schema\WebhookIssuesPinned|Schema\WebhookIssuesReopened|Schema\WebhookIssuesTransferred|Schema\WebhookIssuesTyped|Schema\WebhookIssuesUnassigned|Schema\WebhookIssuesUnlabeled|Schema\WebhookIssuesUnlocked|Schema\WebhookIssuesUnpinned|Schema\WebhookIssuesUntyped { $error = new RuntimeException('No action matching given headers and data'); if ($headers['content-type'] === 'application/json') { @@ -247,9 +247,9 @@ public function resolve(array $headers, array $data): Schema\WebhookIssuesAssign $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-type'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-github-delivery'], Reader::readFromJson(Schema\WebHookHeader\XGitHubDelivery::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-hub-signature-256'], Reader::readFromJson(Schema\WebHookHeader\XHubSignature::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnassigned::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesTyped::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnassigned::class, $data); + return $this->hydrator->hydrateObject(Schema\WebhookIssuesTyped::class, $data); } catch (Throwable) { goto actions_aaaam; } @@ -265,9 +265,9 @@ public function resolve(array $headers, array $data): Schema\WebhookIssuesAssign $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-type'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-github-delivery'], Reader::readFromJson(Schema\WebHookHeader\XGitHubDelivery::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-hub-signature-256'], Reader::readFromJson(Schema\WebHookHeader\XHubSignature::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnlabeled::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnassigned::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnlabeled::class, $data); + return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnassigned::class, $data); } catch (Throwable) { goto actions_aaaan; } @@ -283,9 +283,9 @@ public function resolve(array $headers, array $data): Schema\WebhookIssuesAssign $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-type'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-github-delivery'], Reader::readFromJson(Schema\WebHookHeader\XGitHubDelivery::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-hub-signature-256'], Reader::readFromJson(Schema\WebHookHeader\XHubSignature::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnlocked::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnlabeled::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnlocked::class, $data); + return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnlabeled::class, $data); } catch (Throwable) { goto actions_aaaao; } @@ -301,15 +301,51 @@ public function resolve(array $headers, array $data): Schema\WebhookIssuesAssign $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-type'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-github-delivery'], Reader::readFromJson(Schema\WebHookHeader\XGitHubDelivery::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-hub-signature-256'], Reader::readFromJson(Schema\WebHookHeader\XHubSignature::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnpinned::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnlocked::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnpinned::class, $data); + return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnlocked::class, $data); } catch (Throwable) { goto actions_aaaap; } } actions_aaaap: + if ($headers['content-type'] === 'application/json') { + try { + $this->requestSchemaValidator->validate($headers['user-agent'], Reader::readFromJson(Schema\WebHookHeader\UserAgent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-hook-id'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookId::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-event'], Reader::readFromJson(Schema\WebHookHeader\XGithubEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-id'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetId::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-type'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-delivery'], Reader::readFromJson(Schema\WebHookHeader\XGitHubDelivery::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-hub-signature-256'], Reader::readFromJson(Schema\WebHookHeader\XHubSignature::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnpinned::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnpinned::class, $data); + } catch (Throwable) { + goto actions_aaaaq; + } + } + + actions_aaaaq: + if ($headers['content-type'] === 'application/json') { + try { + $this->requestSchemaValidator->validate($headers['user-agent'], Reader::readFromJson(Schema\WebHookHeader\UserAgent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-hook-id'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookId::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-event'], Reader::readFromJson(Schema\WebHookHeader\XGithubEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-id'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetId::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-type'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-delivery'], Reader::readFromJson(Schema\WebHookHeader\XGitHubDelivery::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-hub-signature-256'], Reader::readFromJson(Schema\WebHookHeader\XHubSignature::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUntyped::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\WebhookIssuesUntyped::class, $data); + } catch (Throwable) { + goto actions_aaaar; + } + } + + actions_aaaar: throw $error; } } diff --git a/clients/GitHub/src/Operation/Copilot.php b/clients/GitHub/src/Operation/Copilot.php index 3322f8ac29a..a8c5d4e9316 100644 --- a/clients/GitHub/src/Operation/Copilot.php +++ b/clients/GitHub/src/Operation/Copilot.php @@ -66,18 +66,6 @@ public function copilotMetricsForOrganizationListing(string $org, string $since, return $this->operators->copilot👷CopilotMetricsForOrganizationListing()->call($org, $since, $until, $page, $perPage); } - /** @return Observable */ - public function usageMetricsForOrg(string $org, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForOrg()->call($org, $since, $until, $page, $perPage); - } - - /** @return Observable */ - public function usageMetricsForOrgListing(string $org, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForOrgListing()->call($org, $since, $until, $page, $perPage); - } - /** @return */ public function getCopilotSeatDetailsForUser(string $org, string $username): CopilotSeatDetails|WithoutBody { @@ -95,16 +83,4 @@ public function copilotMetricsForTeamListing(string $org, string $teamSlug, stri { return $this->operators->copilot👷CopilotMetricsForTeamListing()->call($org, $teamSlug, $since, $until, $page, $perPage); } - - /** @return Observable */ - public function usageMetricsForTeam(string $org, string $teamSlug, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForTeam()->call($org, $teamSlug, $since, $until, $page, $perPage); - } - - /** @return Observable */ - public function usageMetricsForTeamListing(string $org, string $teamSlug, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForTeamListing()->call($org, $teamSlug, $since, $until, $page, $perPage); - } } diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 6a9ef1cd320..5f90ce5b14b 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -931,14 +931,6 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve('Observable'); } - if ($call === 'GET /orgs/{org}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - - if ($call === 'LIST /orgs/{org}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - if ($call === 'GET /orgs/{org}/dependabot/alerts') { return $this->typeResolver->resolve('Observable|WithoutBody'); } @@ -1615,14 +1607,6 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve('Observable'); } - if ($call === 'GET /orgs/{org}/team/{team_slug}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - - if ($call === 'LIST /orgs/{org}/team/{team_slug}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - if ($call === 'GET /orgs/{org}/teams') { return $this->typeResolver->resolve('Observable'); } diff --git a/clients/GitHub/src/Schema/CopilotUsageMetrics.php b/clients/GitHub/src/Schema/CopilotUsageMetrics.php deleted file mode 100644 index 1b3c10c9fcb..00000000000 --- a/clients/GitHub/src/Schema/CopilotUsageMetrics.php +++ /dev/null @@ -1,140 +0,0 @@ - $object::class, 'data' => $this->hydrator->serializeObject($object)]; } - /** @return Schema\WebhookBranchProtectionConfigurationDisabled|Schema\WebhookBranchProtectionConfigurationEnabled|Schema\WebhookBranchProtectionRuleCreated|Schema\WebhookBranchProtectionRuleDeleted|Schema\WebhookBranchProtectionRuleEdited|Schema\WebhookCheckRunCompleted|Schema\WebhookCheckRunCompletedFormEncoded|Schema\WebhookCheckRunCreated|Schema\WebhookCheckRunCreatedFormEncoded|Schema\WebhookCheckRunRequestedAction|Schema\WebhookCheckRunRequestedActionFormEncoded|Schema\WebhookCheckRunRerequested|Schema\WebhookCheckRunRerequestedFormEncoded|Schema\WebhookCheckSuiteCompleted|Schema\WebhookCheckSuiteRequested|Schema\WebhookCheckSuiteRerequested|Schema\WebhookCodeScanningAlertAppearedInBranch|Schema\WebhookCodeScanningAlertClosedByUser|Schema\WebhookCodeScanningAlertCreated|Schema\WebhookCodeScanningAlertFixed|Schema\WebhookCodeScanningAlertReopened|Schema\WebhookCodeScanningAlertReopenedByUser|Schema\WebhookCommitCommentCreated|Schema\WebhookCreate|Schema\WebhookCustomPropertyCreated|Schema\WebhookCustomPropertyDeleted|Schema\WebhookCustomPropertyPromotedToEnterprise|Schema\WebhookCustomPropertyUpdated|Schema\WebhookCustomPropertyValuesUpdated|Schema\WebhookDelete|Schema\WebhookDependabotAlertAutoDismissed|Schema\WebhookDependabotAlertAutoReopened|Schema\WebhookDependabotAlertCreated|Schema\WebhookDependabotAlertDismissed|Schema\WebhookDependabotAlertFixed|Schema\WebhookDependabotAlertReintroduced|Schema\WebhookDependabotAlertReopened|Schema\WebhookDeployKeyCreated|Schema\WebhookDeployKeyDeleted|Schema\WebhookDeploymentCreated|Schema\WebhookDeploymentProtectionRuleRequested|Schema\WebhookDeploymentReviewApproved|Schema\WebhookDeploymentReviewRejected|Schema\WebhookDeploymentReviewRequested|Schema\WebhookDeploymentStatusCreated|Schema\WebhookDiscussionAnswered|Schema\WebhookDiscussionCategoryChanged|Schema\WebhookDiscussionClosed|Schema\WebhookDiscussionCreated|Schema\WebhookDiscussionDeleted|Schema\WebhookDiscussionEdited|Schema\WebhookDiscussionLabeled|Schema\WebhookDiscussionLocked|Schema\WebhookDiscussionPinned|Schema\WebhookDiscussionReopened|Schema\WebhookDiscussionTransferred|Schema\WebhookDiscussionUnanswered|Schema\WebhookDiscussionUnlabeled|Schema\WebhookDiscussionUnlocked|Schema\WebhookDiscussionUnpinned|Schema\WebhookDiscussionCommentCreated|Schema\WebhookDiscussionCommentDeleted|Schema\WebhookDiscussionCommentEdited|Schema\WebhookFork|Schema\WebhookGithubAppAuthorizationRevoked|Schema\WebhookGollum|Schema\WebhookInstallationCreated|Schema\WebhookInstallationDeleted|Schema\WebhookInstallationNewPermissionsAccepted|Schema\WebhookInstallationSuspend|Schema\WebhookInstallationUnsuspend|Schema\WebhookInstallationRepositoriesAdded|Schema\WebhookInstallationRepositoriesRemoved|Schema\WebhookInstallationTargetRenamed|Schema\WebhookIssueCommentCreated|Schema\WebhookIssueCommentDeleted|Schema\WebhookIssueCommentEdited|Schema\WebhookIssuesAssigned|Schema\WebhookIssuesClosed|Schema\WebhookIssuesDeleted|Schema\WebhookIssuesDemilestoned|Schema\WebhookIssuesEdited|Schema\WebhookIssuesLabeled|Schema\WebhookIssuesLocked|Schema\WebhookIssuesMilestoned|Schema\WebhookIssuesOpened|Schema\WebhookIssuesPinned|Schema\WebhookIssuesReopened|Schema\WebhookIssuesTransferred|Schema\WebhookIssuesUnassigned|Schema\WebhookIssuesUnlabeled|Schema\WebhookIssuesUnlocked|Schema\WebhookIssuesUnpinned|Schema\WebhookLabelCreated|Schema\WebhookLabelDeleted|Schema\WebhookLabelEdited|Schema\WebhookMarketplacePurchaseCancelled|Schema\WebhookMarketplacePurchaseChanged|Schema\WebhookMarketplacePurchasePendingChange|Schema\WebhookMarketplacePurchasePendingChangeCancelled|Schema\WebhookMarketplacePurchasePurchased|Schema\WebhookMemberAdded|Schema\WebhookMemberEdited|Schema\WebhookMemberRemoved|Schema\WebhookMembershipAdded|Schema\WebhookMembershipRemoved|Schema\WebhookMergeGroupChecksRequested|Schema\WebhookMergeGroupDestroyed|Schema\WebhookMetaDeleted|Schema\WebhookMilestoneClosed|Schema\WebhookMilestoneCreated|Schema\WebhookMilestoneDeleted|Schema\WebhookMilestoneEdited|Schema\WebhookMilestoneOpened|Schema\WebhookOrgBlockBlocked|Schema\WebhookOrgBlockUnblocked|Schema\WebhookOrganizationDeleted|Schema\WebhookOrganizationMemberAdded|Schema\WebhookOrganizationMemberInvited|Schema\WebhookOrganizationMemberRemoved|Schema\WebhookOrganizationRenamed|Schema\WebhookPackagePublished|Schema\WebhookPackageUpdated|Schema\WebhookPageBuild|Schema\WebhookPersonalAccessTokenRequestApproved|Schema\WebhookPersonalAccessTokenRequestCancelled|Schema\WebhookPersonalAccessTokenRequestCreated|Schema\WebhookPersonalAccessTokenRequestDenied|Schema\WebhookPing|Schema\WebhookPingFormEncoded|Schema\WebhookProjectCardConverted|Schema\WebhookProjectCardCreated|Schema\WebhookProjectCardDeleted|Schema\WebhookProjectCardEdited|Schema\WebhookProjectCardMoved|Schema\WebhookProjectClosed|Schema\WebhookProjectCreated|Schema\WebhookProjectDeleted|Schema\WebhookProjectEdited|Schema\WebhookProjectReopened|Schema\WebhookProjectColumnCreated|Schema\WebhookProjectColumnDeleted|Schema\WebhookProjectColumnEdited|Schema\WebhookProjectColumnMoved|Schema\WebhookProjectsV2ProjectClosed|Schema\WebhookProjectsV2ProjectCreated|Schema\WebhookProjectsV2ProjectDeleted|Schema\WebhookProjectsV2ProjectEdited|Schema\WebhookProjectsV2ProjectReopened|Schema\WebhookProjectsV2ItemArchived|Schema\WebhookProjectsV2ItemConverted|Schema\WebhookProjectsV2ItemCreated|Schema\WebhookProjectsV2ItemDeleted|Schema\WebhookProjectsV2ItemEdited|Schema\WebhookProjectsV2ItemReordered|Schema\WebhookProjectsV2ItemRestored|Schema\WebhookProjectsV2StatusUpdateCreated|Schema\WebhookProjectsV2StatusUpdateDeleted|Schema\WebhookProjectsV2StatusUpdateEdited|Schema\WebhookPublic|Schema\WebhookPullRequestAssigned|Schema\WebhookPullRequestAutoMergeDisabled|Schema\WebhookPullRequestAutoMergeEnabled|Schema\WebhookPullRequestClosed|Schema\WebhookPullRequestConvertedToDraft|Schema\WebhookPullRequestDemilestoned|Schema\WebhookPullRequestDequeued|Schema\WebhookPullRequestEdited|Schema\WebhookPullRequestEnqueued|Schema\WebhookPullRequestLabeled|Schema\WebhookPullRequestLocked|Schema\WebhookPullRequestMilestoned|Schema\WebhookPullRequestOpened|Schema\WebhookPullRequestReadyForReview|Schema\WebhookPullRequestReopened|Schema\WebhookPullRequestReviewRequestRemoved|Schema\WebhookPullRequestReviewRequested|Schema\WebhookPullRequestSynchronize|Schema\WebhookPullRequestUnassigned|Schema\WebhookPullRequestUnlabeled|Schema\WebhookPullRequestUnlocked|Schema\WebhookPullRequestReviewCommentCreated|Schema\WebhookPullRequestReviewCommentDeleted|Schema\WebhookPullRequestReviewCommentEdited|Schema\WebhookPullRequestReviewDismissed|Schema\WebhookPullRequestReviewEdited|Schema\WebhookPullRequestReviewSubmitted|Schema\WebhookPullRequestReviewThreadResolved|Schema\WebhookPullRequestReviewThreadUnresolved|Schema\WebhookPush|Schema\WebhookRegistryPackagePublished|Schema\WebhookRegistryPackageUpdated|Schema\WebhookReleaseCreated|Schema\WebhookReleaseDeleted|Schema\WebhookReleaseEdited|Schema\WebhookReleasePrereleased|Schema\WebhookReleasePublished|Schema\WebhookReleaseReleased|Schema\WebhookReleaseUnpublished|Schema\WebhookRepositoryAdvisoryPublished|Schema\WebhookRepositoryAdvisoryReported|Schema\WebhookRepositoryArchived|Schema\WebhookRepositoryCreated|Schema\WebhookRepositoryDeleted|Schema\WebhookRepositoryEdited|Schema\WebhookRepositoryPrivatized|Schema\WebhookRepositoryPublicized|Schema\WebhookRepositoryRenamed|Schema\WebhookRepositoryTransferred|Schema\WebhookRepositoryUnarchived|Schema\WebhookRepositoryDispatchSample|Schema\WebhookRepositoryImport|Schema\WebhookRepositoryRulesetCreated|Schema\WebhookRepositoryRulesetDeleted|Schema\WebhookRepositoryRulesetEdited|Schema\WebhookRepositoryVulnerabilityAlertCreate|Schema\WebhookRepositoryVulnerabilityAlertDismiss|Schema\WebhookRepositoryVulnerabilityAlertReopen|Schema\WebhookRepositoryVulnerabilityAlertResolve|Schema\WebhookSecretScanningAlertCreated|Schema\WebhookSecretScanningAlertPubliclyLeaked|Schema\WebhookSecretScanningAlertReopened|Schema\WebhookSecretScanningAlertResolved|Schema\WebhookSecretScanningAlertValidated|Schema\WebhookSecretScanningAlertLocationCreated|Schema\WebhookSecretScanningAlertLocationCreatedFormEncoded|Schema\WebhookSecretScanningScanCompleted|Schema\WebhookSecurityAdvisoryPublished|Schema\WebhookSecurityAdvisoryUpdated|Schema\WebhookSecurityAdvisoryWithdrawn|Schema\WebhookSecurityAndAnalysis|Schema\WebhookSponsorshipCancelled|Schema\WebhookSponsorshipCreated|Schema\WebhookSponsorshipEdited|Schema\WebhookSponsorshipPendingCancellation|Schema\WebhookSponsorshipPendingTierChange|Schema\WebhookSponsorshipTierChanged|Schema\WebhookStarCreated|Schema\WebhookStarDeleted|Schema\WebhookStatus|Schema\WebhookSubIssuesParentIssueAdded|Schema\WebhookSubIssuesParentIssueRemoved|Schema\WebhookSubIssuesSubIssueAdded|Schema\WebhookSubIssuesSubIssueRemoved|Schema\WebhookTeamAdd|Schema\WebhookTeamAddedToRepository|Schema\WebhookTeamCreated|Schema\WebhookTeamDeleted|Schema\WebhookTeamEdited|Schema\WebhookTeamRemovedFromRepository|Schema\WebhookWatchStarted|Schema\WebhookWorkflowDispatch|Schema\WebhookWorkflowJobCompleted|Schema\WebhookWorkflowJobInProgress|Schema\WebhookWorkflowJobQueued|Schema\WebhookWorkflowJobWaiting|Schema\WebhookWorkflowRunCompleted|Schema\WebhookWorkflowRunInProgress|Schema\WebhookWorkflowRunRequested */ + /** @return Schema\WebhookBranchProtectionConfigurationDisabled|Schema\WebhookBranchProtectionConfigurationEnabled|Schema\WebhookBranchProtectionRuleCreated|Schema\WebhookBranchProtectionRuleDeleted|Schema\WebhookBranchProtectionRuleEdited|Schema\WebhookCheckRunCompleted|Schema\WebhookCheckRunCompletedFormEncoded|Schema\WebhookCheckRunCreated|Schema\WebhookCheckRunCreatedFormEncoded|Schema\WebhookCheckRunRequestedAction|Schema\WebhookCheckRunRequestedActionFormEncoded|Schema\WebhookCheckRunRerequested|Schema\WebhookCheckRunRerequestedFormEncoded|Schema\WebhookCheckSuiteCompleted|Schema\WebhookCheckSuiteRequested|Schema\WebhookCheckSuiteRerequested|Schema\WebhookCodeScanningAlertAppearedInBranch|Schema\WebhookCodeScanningAlertClosedByUser|Schema\WebhookCodeScanningAlertCreated|Schema\WebhookCodeScanningAlertFixed|Schema\WebhookCodeScanningAlertReopened|Schema\WebhookCodeScanningAlertReopenedByUser|Schema\WebhookCommitCommentCreated|Schema\WebhookCreate|Schema\WebhookCustomPropertyCreated|Schema\WebhookCustomPropertyDeleted|Schema\WebhookCustomPropertyPromotedToEnterprise|Schema\WebhookCustomPropertyUpdated|Schema\WebhookCustomPropertyValuesUpdated|Schema\WebhookDelete|Schema\WebhookDependabotAlertAutoDismissed|Schema\WebhookDependabotAlertAutoReopened|Schema\WebhookDependabotAlertCreated|Schema\WebhookDependabotAlertDismissed|Schema\WebhookDependabotAlertFixed|Schema\WebhookDependabotAlertReintroduced|Schema\WebhookDependabotAlertReopened|Schema\WebhookDeployKeyCreated|Schema\WebhookDeployKeyDeleted|Schema\WebhookDeploymentCreated|Schema\WebhookDeploymentProtectionRuleRequested|Schema\WebhookDeploymentReviewApproved|Schema\WebhookDeploymentReviewRejected|Schema\WebhookDeploymentReviewRequested|Schema\WebhookDeploymentStatusCreated|Schema\WebhookDiscussionAnswered|Schema\WebhookDiscussionCategoryChanged|Schema\WebhookDiscussionClosed|Schema\WebhookDiscussionCreated|Schema\WebhookDiscussionDeleted|Schema\WebhookDiscussionEdited|Schema\WebhookDiscussionLabeled|Schema\WebhookDiscussionLocked|Schema\WebhookDiscussionPinned|Schema\WebhookDiscussionReopened|Schema\WebhookDiscussionTransferred|Schema\WebhookDiscussionUnanswered|Schema\WebhookDiscussionUnlabeled|Schema\WebhookDiscussionUnlocked|Schema\WebhookDiscussionUnpinned|Schema\WebhookDiscussionCommentCreated|Schema\WebhookDiscussionCommentDeleted|Schema\WebhookDiscussionCommentEdited|Schema\WebhookFork|Schema\WebhookGithubAppAuthorizationRevoked|Schema\WebhookGollum|Schema\WebhookInstallationCreated|Schema\WebhookInstallationDeleted|Schema\WebhookInstallationNewPermissionsAccepted|Schema\WebhookInstallationSuspend|Schema\WebhookInstallationUnsuspend|Schema\WebhookInstallationRepositoriesAdded|Schema\WebhookInstallationRepositoriesRemoved|Schema\WebhookInstallationTargetRenamed|Schema\WebhookIssueCommentCreated|Schema\WebhookIssueCommentDeleted|Schema\WebhookIssueCommentEdited|Schema\WebhookIssuesAssigned|Schema\WebhookIssuesClosed|Schema\WebhookIssuesDeleted|Schema\WebhookIssuesDemilestoned|Schema\WebhookIssuesEdited|Schema\WebhookIssuesLabeled|Schema\WebhookIssuesLocked|Schema\WebhookIssuesMilestoned|Schema\WebhookIssuesOpened|Schema\WebhookIssuesPinned|Schema\WebhookIssuesReopened|Schema\WebhookIssuesTransferred|Schema\WebhookIssuesTyped|Schema\WebhookIssuesUnassigned|Schema\WebhookIssuesUnlabeled|Schema\WebhookIssuesUnlocked|Schema\WebhookIssuesUnpinned|Schema\WebhookIssuesUntyped|Schema\WebhookLabelCreated|Schema\WebhookLabelDeleted|Schema\WebhookLabelEdited|Schema\WebhookMarketplacePurchaseCancelled|Schema\WebhookMarketplacePurchaseChanged|Schema\WebhookMarketplacePurchasePendingChange|Schema\WebhookMarketplacePurchasePendingChangeCancelled|Schema\WebhookMarketplacePurchasePurchased|Schema\WebhookMemberAdded|Schema\WebhookMemberEdited|Schema\WebhookMemberRemoved|Schema\WebhookMembershipAdded|Schema\WebhookMembershipRemoved|Schema\WebhookMergeGroupChecksRequested|Schema\WebhookMergeGroupDestroyed|Schema\WebhookMetaDeleted|Schema\WebhookMilestoneClosed|Schema\WebhookMilestoneCreated|Schema\WebhookMilestoneDeleted|Schema\WebhookMilestoneEdited|Schema\WebhookMilestoneOpened|Schema\WebhookOrgBlockBlocked|Schema\WebhookOrgBlockUnblocked|Schema\WebhookOrganizationDeleted|Schema\WebhookOrganizationMemberAdded|Schema\WebhookOrganizationMemberInvited|Schema\WebhookOrganizationMemberRemoved|Schema\WebhookOrganizationRenamed|Schema\WebhookPackagePublished|Schema\WebhookPackageUpdated|Schema\WebhookPageBuild|Schema\WebhookPersonalAccessTokenRequestApproved|Schema\WebhookPersonalAccessTokenRequestCancelled|Schema\WebhookPersonalAccessTokenRequestCreated|Schema\WebhookPersonalAccessTokenRequestDenied|Schema\WebhookPing|Schema\WebhookPingFormEncoded|Schema\WebhookProjectCardConverted|Schema\WebhookProjectCardCreated|Schema\WebhookProjectCardDeleted|Schema\WebhookProjectCardEdited|Schema\WebhookProjectCardMoved|Schema\WebhookProjectClosed|Schema\WebhookProjectCreated|Schema\WebhookProjectDeleted|Schema\WebhookProjectEdited|Schema\WebhookProjectReopened|Schema\WebhookProjectColumnCreated|Schema\WebhookProjectColumnDeleted|Schema\WebhookProjectColumnEdited|Schema\WebhookProjectColumnMoved|Schema\WebhookProjectsV2ProjectClosed|Schema\WebhookProjectsV2ProjectCreated|Schema\WebhookProjectsV2ProjectDeleted|Schema\WebhookProjectsV2ProjectEdited|Schema\WebhookProjectsV2ProjectReopened|Schema\WebhookProjectsV2ItemArchived|Schema\WebhookProjectsV2ItemConverted|Schema\WebhookProjectsV2ItemCreated|Schema\WebhookProjectsV2ItemDeleted|Schema\WebhookProjectsV2ItemEdited|Schema\WebhookProjectsV2ItemReordered|Schema\WebhookProjectsV2ItemRestored|Schema\WebhookProjectsV2StatusUpdateCreated|Schema\WebhookProjectsV2StatusUpdateDeleted|Schema\WebhookProjectsV2StatusUpdateEdited|Schema\WebhookPublic|Schema\WebhookPullRequestAssigned|Schema\WebhookPullRequestAutoMergeDisabled|Schema\WebhookPullRequestAutoMergeEnabled|Schema\WebhookPullRequestClosed|Schema\WebhookPullRequestConvertedToDraft|Schema\WebhookPullRequestDemilestoned|Schema\WebhookPullRequestDequeued|Schema\WebhookPullRequestEdited|Schema\WebhookPullRequestEnqueued|Schema\WebhookPullRequestLabeled|Schema\WebhookPullRequestLocked|Schema\WebhookPullRequestMilestoned|Schema\WebhookPullRequestOpened|Schema\WebhookPullRequestReadyForReview|Schema\WebhookPullRequestReopened|Schema\WebhookPullRequestReviewRequestRemoved|Schema\WebhookPullRequestReviewRequested|Schema\WebhookPullRequestSynchronize|Schema\WebhookPullRequestUnassigned|Schema\WebhookPullRequestUnlabeled|Schema\WebhookPullRequestUnlocked|Schema\WebhookPullRequestReviewCommentCreated|Schema\WebhookPullRequestReviewCommentDeleted|Schema\WebhookPullRequestReviewCommentEdited|Schema\WebhookPullRequestReviewDismissed|Schema\WebhookPullRequestReviewEdited|Schema\WebhookPullRequestReviewSubmitted|Schema\WebhookPullRequestReviewThreadResolved|Schema\WebhookPullRequestReviewThreadUnresolved|Schema\WebhookPush|Schema\WebhookRegistryPackagePublished|Schema\WebhookRegistryPackageUpdated|Schema\WebhookReleaseCreated|Schema\WebhookReleaseDeleted|Schema\WebhookReleaseEdited|Schema\WebhookReleasePrereleased|Schema\WebhookReleasePublished|Schema\WebhookReleaseReleased|Schema\WebhookReleaseUnpublished|Schema\WebhookRepositoryAdvisoryPublished|Schema\WebhookRepositoryAdvisoryReported|Schema\WebhookRepositoryArchived|Schema\WebhookRepositoryCreated|Schema\WebhookRepositoryDeleted|Schema\WebhookRepositoryEdited|Schema\WebhookRepositoryPrivatized|Schema\WebhookRepositoryPublicized|Schema\WebhookRepositoryRenamed|Schema\WebhookRepositoryTransferred|Schema\WebhookRepositoryUnarchived|Schema\WebhookRepositoryDispatchSample|Schema\WebhookRepositoryImport|Schema\WebhookRepositoryRulesetCreated|Schema\WebhookRepositoryRulesetDeleted|Schema\WebhookRepositoryRulesetEdited|Schema\WebhookRepositoryVulnerabilityAlertCreate|Schema\WebhookRepositoryVulnerabilityAlertDismiss|Schema\WebhookRepositoryVulnerabilityAlertReopen|Schema\WebhookRepositoryVulnerabilityAlertResolve|Schema\WebhookSecretScanningAlertCreated|Schema\WebhookSecretScanningAlertPubliclyLeaked|Schema\WebhookSecretScanningAlertReopened|Schema\WebhookSecretScanningAlertResolved|Schema\WebhookSecretScanningAlertValidated|Schema\WebhookSecretScanningAlertLocationCreated|Schema\WebhookSecretScanningAlertLocationCreatedFormEncoded|Schema\WebhookSecretScanningScanCompleted|Schema\WebhookSecurityAdvisoryPublished|Schema\WebhookSecurityAdvisoryUpdated|Schema\WebhookSecurityAdvisoryWithdrawn|Schema\WebhookSecurityAndAnalysis|Schema\WebhookSponsorshipCancelled|Schema\WebhookSponsorshipCreated|Schema\WebhookSponsorshipEdited|Schema\WebhookSponsorshipPendingCancellation|Schema\WebhookSponsorshipPendingTierChange|Schema\WebhookSponsorshipTierChanged|Schema\WebhookStarCreated|Schema\WebhookStarDeleted|Schema\WebhookStatus|Schema\WebhookSubIssuesParentIssueAdded|Schema\WebhookSubIssuesParentIssueRemoved|Schema\WebhookSubIssuesSubIssueAdded|Schema\WebhookSubIssuesSubIssueRemoved|Schema\WebhookTeamAdd|Schema\WebhookTeamAddedToRepository|Schema\WebhookTeamCreated|Schema\WebhookTeamDeleted|Schema\WebhookTeamEdited|Schema\WebhookTeamRemovedFromRepository|Schema\WebhookWatchStarted|Schema\WebhookWorkflowDispatch|Schema\WebhookWorkflowJobCompleted|Schema\WebhookWorkflowJobInProgress|Schema\WebhookWorkflowJobQueued|Schema\WebhookWorkflowJobWaiting|Schema\WebhookWorkflowRunCompleted|Schema\WebhookWorkflowRunInProgress|Schema\WebhookWorkflowRunRequested */ public function resolve(array $headers, array $data): object { $headers = (static function ($headers): array { diff --git a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForOrgListingTest.php b/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForOrgListingTest.php deleted file mode 100644 index edd21025c5b..00000000000 --- a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForOrgListingTest.php +++ /dev/null @@ -1,191 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrgListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_500_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrgListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrgListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrgListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrgListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrgListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrgListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrgListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } -} diff --git a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForOrgTest.php b/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForOrgTest.php deleted file mode 100644 index 75a1be069f2..00000000000 --- a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForOrgTest.php +++ /dev/null @@ -1,175 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrg::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_500_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrg('generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrg::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrg('generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrg::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrg('generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrg::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrg('generated', 'generated', 'generated', 1, 8); - } -} diff --git a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForTeamListingTest.php b/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForTeamListingTest.php deleted file mode 100644 index c3ed8427c20..00000000000 --- a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForTeamListingTest.php +++ /dev/null @@ -1,195 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_500_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } -} diff --git a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForTeamTest.php b/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForTeamTest.php deleted file mode 100644 index c7248e298dc..00000000000 --- a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForTeamTest.php +++ /dev/null @@ -1,179 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeam::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_500_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeam::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeam::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeam::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } -} diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index a535b81e013..40867a9b40d 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -239,8 +239,6 @@ function authHeader(): string assertType('', $client->call('DELETE /orgs/{org}/copilot/billing/selected_users')); assertType('Observable', $client->call('GET /orgs/{org}/copilot/metrics')); assertType('Observable', $client->call('LIST /orgs/{org}/copilot/metrics')); -assertType('Observable', $client->call('GET /orgs/{org}/copilot/usage')); -assertType('Observable', $client->call('LIST /orgs/{org}/copilot/usage')); assertType('Observable|WithoutBody', $client->call('GET /orgs/{org}/dependabot/alerts')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets/public-key')); @@ -410,8 +408,6 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/settings/network-settings/{network_settings_id}')); assertType('Observable', $client->call('GET /orgs/{org}/team/{team_slug}/copilot/metrics')); assertType('Observable', $client->call('LIST /orgs/{org}/team/{team_slug}/copilot/metrics')); -assertType('Observable', $client->call('GET /orgs/{org}/team/{team_slug}/copilot/usage')); -assertType('Observable', $client->call('LIST /orgs/{org}/team/{team_slug}/copilot/usage')); assertType('Observable', $client->call('GET /orgs/{org}/teams')); assertType('Observable', $client->call('LIST /orgs/{org}/teams')); assertType('', $client->call('POST /orgs/{org}/teams')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 9dfd008ebfe..793337a9c02 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -9812,81 +9812,6 @@ paths: enabledForGitHubApps: true category: copilot subcategory: copilot-metrics - "/orgs/{org}/copilot/usage": - get: - summary: Get a summary of Copilot usage for organization members - description: |- - > [!NOTE] - > This endpoint is closing down. It will be accessible throughout February 2025, but will not return any new data after February 1st. - - You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE - across an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. - See the response schema tab for detailed metrics definitions. - - The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day, - and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics, - they must have telemetry enabled in their IDE. - - Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics. - - OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. - tags: - - copilot - operationId: copilot/usage-metrics-for-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-organization-members - parameters: - - "$ref": "#/components/parameters/org" - - name: since - description: Show usage metrics since this date. This is a timestamp in [ISO - 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). - Maximum value is 28 days ago. - in: query - required: false - schema: - type: string - - name: until - description: Show usage metrics until this date. This is a timestamp in [ISO - 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) - and should not preceed the `since` date if it is passed. - in: query - required: false - schema: - type: string - - "$ref": "#/components/parameters/page" - - name: per_page - description: The number of days of metrics to display per page (max 28). For - more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - in: query - schema: - type: integer - default: 28 - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/copilot-usage-metrics" - examples: - default: - "$ref": "#/components/examples/copilot-usage-metrics-org" - '500': - "$ref": "#/components/responses/internal_error" - '401': - "$ref": "#/components/responses/requires_authentication" - '403': - "$ref": "#/components/responses/forbidden" - '404': - "$ref": "#/components/responses/not_found" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: copilot - subcategory: copilot-usage "/orgs/{org}/dependabot/alerts": get: summary: List Dependabot alerts for an organization @@ -16243,85 +16168,6 @@ paths: enabledForGitHubApps: true category: copilot subcategory: copilot-metrics - "/orgs/{org}/team/{team_slug}/copilot/usage": - get: - summary: Get a summary of Copilot usage for a team - description: |- - > [!NOTE] - > This endpoint is closing down. It will be accessible throughout February 2025, but will not return any new data after February 1st. - - You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE - for users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. - See the response schema tab for detailed metrics definitions. - - The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day, - and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics, - they must have telemetry enabled in their IDE. - - > [!NOTE] - > This endpoint will only return results for a given day if the team had five or more members with active Copilot licenses, as evaluated at the end of that day. - - Organization owners for the organization that contains this team, and owners and billing managers of the parent enterprise can view Copilot usage metrics for a team. - - OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. - tags: - - copilot - operationId: copilot/usage-metrics-for-team - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - - name: since - description: Show usage metrics since this date. This is a timestamp in [ISO - 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). - Maximum value is 28 days ago. - in: query - required: false - schema: - type: string - - name: until - description: Show usage metrics until this date. This is a timestamp in [ISO - 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) - and should not preceed the `since` date if it is passed. - in: query - required: false - schema: - type: string - - "$ref": "#/components/parameters/page" - - name: per_page - description: The number of days of metrics to display per page (max 28). For - more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - in: query - schema: - type: integer - default: 28 - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/copilot-usage-metrics" - examples: - default: - "$ref": "#/components/examples/copilot-usage-metrics-org" - '500': - "$ref": "#/components/responses/internal_error" - '401': - "$ref": "#/components/responses/requires_authentication" - '403': - "$ref": "#/components/responses/forbidden" - '404': - "$ref": "#/components/responses/not_found" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: copilot - subcategory: copilot-usage "/orgs/{org}/teams": get: summary: List teams @@ -28777,7 +28623,7 @@ paths: get: summary: List pull requests associated with a commit description: |- - Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, will only return open pull requests associated with the commit. + Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, it will return merged and open pull requests associated with the commit. To list the open or merged pull requests associated with a branch, you can set the `commit_sha` parameter to the branch name. tags: @@ -57156,6 +57002,72 @@ webhooks: - repository - organization - app + issues-typed: + post: + summary: |- + This event occurs when there is activity relating to an issue. For more information about issues, see "[About issues](https://docs.github.com/issues/tracking-your-work-with-issues/about-issues)." For information about the APIs to manage issues, see [the GraphQL documentation](https://docs.github.com/graphql/reference/objects#issue) or "[Issues](https://docs.github.com/rest/issues)" in the REST API documentation. + + For activity relating to a comment on an issue, use the `issue_comment` event. + + To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" repository permission. + description: An issue type was added to an issue. + operationId: issues/typed + externalDocs: + url: https://docs.github.com/webhooks/webhook-events-and-payloads#issues + parameters: + - name: User-Agent + in: header + example: GitHub-Hookshot/123abc + schema: + type: string + - name: X-Github-Hook-Id + in: header + example: 12312312 + schema: + type: string + - name: X-Github-Event + in: header + example: issues + schema: + type: string + - name: X-Github-Hook-Installation-Target-Id + in: header + example: 123123 + schema: + type: string + - name: X-Github-Hook-Installation-Target-Type + in: header + example: repository + schema: + type: string + - name: X-GitHub-Delivery + in: header + example: 0b989ba4-242f-11e5-81e1-c7b6966d2516 + schema: + type: string + - name: X-Hub-Signature-256 + in: header + example: sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e + schema: + type: string + requestBody: + required: true + content: + application/json: + schema: + "$ref": "#/components/schemas/webhook-issues-typed" + responses: + '200': + description: Return a 200 status to indicate that the data was received + successfully + x-github: + githubCloudOnly: false + category: webhooks + subcategory: issues + supported-webhook-types: + - repository + - organization + - app issues-unassigned: post: summary: |- @@ -57422,6 +57334,72 @@ webhooks: - repository - organization - app + issues-untyped: + post: + summary: |- + This event occurs when there is activity relating to an issue. For more information about issues, see "[About issues](https://docs.github.com/issues/tracking-your-work-with-issues/about-issues)." For information about the APIs to manage issues, see [the GraphQL documentation](https://docs.github.com/graphql/reference/objects#issue) or "[Issues](https://docs.github.com/rest/issues)" in the REST API documentation. + + For activity relating to a comment on an issue, use the `issue_comment` event. + + To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" repository permission. + description: An issue type was removed from an issue. + operationId: issues/untyped + externalDocs: + url: https://docs.github.com/webhooks/webhook-events-and-payloads#issues + parameters: + - name: User-Agent + in: header + example: GitHub-Hookshot/123abc + schema: + type: string + - name: X-Github-Hook-Id + in: header + example: 12312312 + schema: + type: string + - name: X-Github-Event + in: header + example: issues + schema: + type: string + - name: X-Github-Hook-Installation-Target-Id + in: header + example: 123123 + schema: + type: string + - name: X-Github-Hook-Installation-Target-Type + in: header + example: repository + schema: + type: string + - name: X-GitHub-Delivery + in: header + example: 0b989ba4-242f-11e5-81e1-c7b6966d2516 + schema: + type: string + - name: X-Hub-Signature-256 + in: header + example: sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e + schema: + type: string + requestBody: + required: true + content: + application/json: + schema: + "$ref": "#/components/schemas/webhook-issues-untyped" + responses: + '200': + description: Return a 200 status to indicate that the data was received + successfully + x-github: + githubCloudOnly: false + category: webhooks + subcategory: issues + supported-webhook-types: + - repository + - organization + - app label-created: post: summary: |- @@ -77076,90 +77054,6 @@ components: required: - date additionalProperties: true - copilot-usage-metrics: - title: Copilot Usage Metrics - description: Summary of Copilot usage. - type: object - properties: - day: - type: string - format: date - description: The date for which the usage metrics are reported, in `YYYY-MM-DD` - format. - total_suggestions_count: - type: integer - description: The total number of Copilot code completion suggestions shown - to users. - total_acceptances_count: - type: integer - description: The total number of Copilot code completion suggestions accepted - by users. - total_lines_suggested: - type: integer - description: The total number of lines of code completions suggested by - Copilot. - total_lines_accepted: - type: integer - description: The total number of lines of code completions accepted by users. - total_active_users: - type: integer - description: The total number of users who were shown Copilot code completion - suggestions during the day specified. - total_chat_acceptances: - type: integer - description: The total instances of users who accepted code suggested by - Copilot Chat in the IDE (panel and inline). - total_chat_turns: - type: integer - description: The total number of chat turns (prompt and response pairs) - sent between users and Copilot Chat in the IDE. - total_active_chat_users: - type: integer - description: The total number of users who interacted with Copilot Chat - in the IDE during the day specified. - breakdown: - type: - - array - - 'null' - description: Breakdown of Copilot code completions usage by language and - editor - items: - type: object - description: Breakdown of Copilot usage by editor for this language - additionalProperties: true - properties: - language: - type: string - description: The language in which Copilot suggestions were shown - to users in the specified editor. - editor: - type: string - description: The editor in which Copilot suggestions were shown to - users for the specified language. - suggestions_count: - type: integer - description: The number of Copilot suggestions shown to users in the - editor specified during the day specified. - acceptances_count: - type: integer - description: The number of Copilot suggestions accepted by users in - the editor specified during the day specified. - lines_suggested: - type: integer - description: The number of lines of code suggested by Copilot in the - editor specified during the day specified. - lines_accepted: - type: integer - description: The number of lines of code accepted by users in the - editor specified during the day specified. - active_users: - type: integer - description: The number of users who were shown Copilot completion - suggestions in the editor specified during the day specified. - required: - - day - - breakdown - additionalProperties: false organization-dependabot-secret: title: Dependabot Secret for an Organization description: Secrets for GitHub Dependabot for an organization. @@ -132252,6 +132146,34 @@ components: - issue - repository - sender + webhook-issues-typed: + title: issues typed event + type: object + properties: + action: + type: string + enum: + - typed + enterprise: + "$ref": "#/components/schemas/enterprise-webhooks" + installation: + "$ref": "#/components/schemas/simple-installation" + issue: + "$ref": "#/components/schemas/webhooks_issue" + type: + "$ref": "#/components/schemas/issue-type" + organization: + "$ref": "#/components/schemas/organization-simple-webhooks" + repository: + "$ref": "#/components/schemas/repository-webhooks" + sender: + "$ref": "#/components/schemas/simple-user" + required: + - action + - issue + - type + - repository + - sender webhook-issues-unassigned: title: issues unassigned event type: object @@ -133298,6 +133220,34 @@ components: - issue - repository - sender + webhook-issues-untyped: + title: issues untyped event + type: object + properties: + action: + type: string + enum: + - untyped + enterprise: + "$ref": "#/components/schemas/enterprise-webhooks" + installation: + "$ref": "#/components/schemas/simple-installation" + issue: + "$ref": "#/components/schemas/webhooks_issue" + type: + "$ref": "#/components/schemas/issue-type" + organization: + "$ref": "#/components/schemas/organization-simple-webhooks" + repository: + "$ref": "#/components/schemas/repository-webhooks" + sender: + "$ref": "#/components/schemas/simple-user" + required: + - action + - issue + - type + - repository + - sender webhook-label-created: title: label created event type: object @@ -209747,70 +209697,6 @@ components: custom_model_training_date: '2024-02-01' total_pr_summaries_created: 10 total_engaged_users: 4 - copilot-usage-metrics-org: - value: - - day: '2023-10-15' - total_suggestions_count: 1000 - total_acceptances_count: 800 - total_lines_suggested: 1800 - total_lines_accepted: 1200 - total_active_users: 10 - total_chat_acceptances: 32 - total_chat_turns: 200 - total_active_chat_users: 4 - breakdown: - - language: python - editor: vscode - suggestions_count: 300 - acceptances_count: 250 - lines_suggested: 900 - lines_accepted: 700 - active_users: 5 - - language: python - editor: jetbrains - suggestions_count: 300 - acceptances_count: 200 - lines_suggested: 400 - lines_accepted: 300 - active_users: 2 - - language: ruby - editor: vscode - suggestions_count: 400 - acceptances_count: 350 - lines_suggested: 500 - lines_accepted: 200 - active_users: 3 - - day: '2023-10-16' - total_suggestions_count: 800 - total_acceptances_count: 600 - total_lines_suggested: 1100 - total_lines_accepted: 700 - total_active_users: 12 - total_chat_acceptances: 57 - total_chat_turns: 426 - total_active_chat_users: 8 - breakdown: - - language: python - editor: vscode - suggestions_count: 300 - acceptances_count: 200 - lines_suggested: 600 - lines_accepted: 300 - active_users: 2 - - language: python - editor: jetbrains - suggestions_count: 300 - acceptances_count: 150 - lines_suggested: 300 - lines_accepted: 250 - active_users: 6 - - language: ruby - editor: vscode - suggestions_count: 200 - acceptances_count: 150 - lines_suggested: 200 - lines_accepted: 150 - active_users: 3 organization-dependabot-secret-paginated: value: total_count: 3