diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index c7a0c8c3507..786fc9b9cc9 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "aa1162e8505efc555be8f6dd8c43e5bd", + "specHash": "e8e191683d6dfdf9b336e7b70932841c", "generatedFiles": { "files": [ { @@ -5880,7 +5880,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php", - "hash": "7337b63b40e43a7ab4fc91a22e161750" + "hash": "130042383c5aa05a52281022e90e3279" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Actions.php", @@ -5932,7 +5932,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "faae510999154371d5098311c2e9762c" + "hash": "f03a8a11b7564a3243f41f75dba649f1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Oidc.php", @@ -5964,7 +5964,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "cf030e3d54061adbb5c82811d325d8c8" + "hash": "3c426094dad68b9152f3ab91dece0856" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php", @@ -12042,13 +12042,9 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleDetailed.php", "hash": "7ad5bee2d05299f118389d2b364c9160" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotSeatBreakdown.php", - "hash": "b9cd7833d09e495f6da2ae8b4b45281a" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php", - "hash": "315efe2685fbad5a698a485a92dccce0" + "hash": "fe7d51cd7adf55007125d07dbf2b3554" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotSeatDetails.php", @@ -26020,7 +26016,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/EnterpriseAdmin.php", - "hash": "aeaf8a8fbb276d98121d05e97a7acd1b" + "hash": "091be6da5e86079717193d21053b4453" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/AnnouncementBanners.php", @@ -26536,7 +26532,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "d8f09dbc2342b125044e95e9973f6d52" + "hash": "8e265f765978087244e8b8f3f68ae7eb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -27184,7 +27180,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Billing.php", - "hash": "8409d7d2f07a2b9872adafaf648e10e1" + "hash": "1df952014d52ef1e43d549bf0287032c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Billing\/Seats.php", @@ -28912,7 +28908,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "b618373a67c1b831d08ea5b2391b54f1" + "hash": "802223b2d9635be2a3d1491c44f2dbed" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php", @@ -28920,7 +28916,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php", - "hash": "1ec134803413b6c8f62f1dc5a15ee898" + "hash": "8104a6828e36304a8f6b848a0eaa8394" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterpriseTest.php", @@ -28992,7 +28988,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterprise.php", - "hash": "fbe4dc8c4e89e0b8f483416c0b77ad1e" + "hash": "0e8e3aace8e45c3fb630495772ecd317" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterpriseTest.php", @@ -29708,11 +29704,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "e9478f458cf8e2989ba95971657e46be" + "hash": "4589549fec8bfd220ad15aa38611a81d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "c7fdc33f1caa5ed1f6038aebbf6960af" + "hash": "00d30ffff5201893a463ed144d33b0c3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -35057,6 +35053,10 @@ { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/DismissalApprovedBy.php", "hash": "fc5d33769ec29362f22f3d2abc94e408" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationSeatBreakdown.php", + "hash": "ae9b75aa40c504807916598c96e7569a" } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Copilot/Billing.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Copilot/Billing.php index b97d58710a0..898d1d87e94 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Copilot/Billing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Copilot/Billing.php @@ -6,7 +6,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationDetails; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatBreakdown; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationSeatBreakdown; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -43,7 +43,7 @@ public function hydrateObject(string $className, array $payload): object { return match ($className) { 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationDetails' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotOrganizationDetails($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatBreakdown' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotSeatBreakdown($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationSeatBreakdown' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotOrganizationSeatBreakdown($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -64,7 +64,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'seatBreakdown'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotSeatBreakdown($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotOrganizationSeatBreakdown($value); } finally { array_pop($this->hydrationStack); } @@ -154,7 +154,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotSeatBreakdown(array $payload): CopilotSeatBreakdown + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotOrganizationSeatBreakdown(array $payload): CopilotOrganizationSeatBreakdown { $properties = []; $missingFields = []; @@ -225,17 +225,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_inactiveThisCycle: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatBreakdown', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationSeatBreakdown', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(CopilotSeatBreakdown::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(CopilotOrganizationSeatBreakdown::class, $missingFields, stack: $this->hydrationStack); } try { - return new CopilotSeatBreakdown(...$properties); + return new CopilotOrganizationSeatBreakdown(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatBreakdown', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationSeatBreakdown', $exception, stack: $this->hydrationStack); } } @@ -334,7 +334,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationDetails' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotOrganizationDetails($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatBreakdown' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotSeatBreakdown($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationSeatBreakdown' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotOrganizationSeatBreakdown($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -404,7 +404,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $result = []; $seatBreakdown = $object->seatBreakdown; - $seatBreakdown = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotSeatBreakdown($seatBreakdown); + $seatBreakdown = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotOrganizationSeatBreakdown($seatBreakdown); after_seatBreakdown: $result['seat_breakdown'] = $seatBreakdown; $publicCodeSuggestions = $object->publicCodeSuggestions; @@ -448,9 +448,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotSeatBreakdown(mixed $object): mixed + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CopilotOrganizationSeatBreakdown(mixed $object): mixed { - assert($object instanceof CopilotSeatBreakdown); + assert($object instanceof CopilotOrganizationSeatBreakdown); $result = []; $total = $object->total; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php index b03d6eae24f..49675035e4a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php @@ -958,7 +958,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CodespacesPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀PublicKey()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CodespacesOrgSecret' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀SecretName()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Codespaces\\ListSelectedReposForOrgSecret\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀SecretName🌀Repositories()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CopilotOrganizationDetails', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CopilotSeatBreakdown' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CopilotOrganizationDetails', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CopilotOrganizationSeatBreakdown' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Copilot\\ListCopilotSeats\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing🌀Seats()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Copilot\\AddCopilotSeatsForTeams\\Response\\ApplicationJson\\Created', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Copilot\\CancelCopilotSeatAssignmentForTeams\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing🌀SelectedTeams()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Copilot\\AddCopilotSeatsForUsers\\Response\\ApplicationJson\\Created', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Copilot\\CancelCopilotSeatAssignmentForUsers\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing🌀SelectedUsers()->hydrateObject($className, $payload), @@ -1368,7 +1368,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CodespacesPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀PublicKey()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CodespacesOrgSecret' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀SecretName()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Codespaces\\ListSelectedReposForOrgSecret\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀SecretName🌀Repositories()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CopilotOrganizationDetails', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CopilotSeatBreakdown' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CopilotOrganizationDetails', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CopilotOrganizationSeatBreakdown' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Copilot\\ListCopilotSeats\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing🌀Seats()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Copilot\\AddCopilotSeatsForTeams\\Response\\ApplicationJson\\Created', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Copilot\\CancelCopilotSeatAssignmentForTeams\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing🌀SelectedTeams()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Copilot\\AddCopilotSeatsForUsers\\Response\\ApplicationJson\\Created', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Copilot\\CancelCopilotSeatAssignmentForUsers\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing🌀SelectedUsers()->serializeObject($object), diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/EnterpriseAdmin/ListProvisionedGroupsEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/EnterpriseAdmin/ListProvisionedGroupsEnterprise.php index b98b60bf791..2bb3d5f84da 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/EnterpriseAdmin/ListProvisionedGroupsEnterprise.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/EnterpriseAdmin/ListProvisionedGroupsEnterprise.php @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $filter, string $excludedAttributes, string $enterprise, int $startIndex = 1, int $count = 30): ScimEnterpriseGroupList|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\EnterpriseAdmin\ListProvisionedGroupsEnterprise($this->responseSchemaValidator, $this->hydrator, $filter, $excludedAttributes, $enterprise, $startIndex, $count); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/EnterpriseAdmin/ListProvisionedIdentitiesEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/EnterpriseAdmin/ListProvisionedIdentitiesEnterprise.php index c5c13e45185..9751f1925b8 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/EnterpriseAdmin/ListProvisionedIdentitiesEnterprise.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/EnterpriseAdmin/ListProvisionedIdentitiesEnterprise.php @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $filter, string $enterprise, int $startIndex = 1, int $count = 30): ScimEnterpriseUserList|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\EnterpriseAdmin\ListProvisionedIdentitiesEnterprise($this->responseSchemaValidator, $this->hydrator, $filter, $enterprise, $startIndex, $count); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/EnterpriseAdmin.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/EnterpriseAdmin.php index 9363d02246b..3f3c9f7e16b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/EnterpriseAdmin.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/EnterpriseAdmin.php @@ -517,6 +517,7 @@ public function getEnterpriseRulesetHistory(array $params): iterable return $operator->call($arguments['enterprise'], $arguments['ruleset_id'], $arguments['per_page'], $arguments['page']); } + /** @return */ public function listProvisionedGroupsEnterprise(array $params): ScimEnterpriseGroupList|WithoutBody { $arguments = []; @@ -555,6 +556,7 @@ public function listProvisionedGroupsEnterprise(array $params): ScimEnterpriseGr return $operator->call($arguments['filter'], $arguments['excludedAttributes'], $arguments['enterprise'], $arguments['startIndex'], $arguments['count']); } + /** @return */ public function listProvisionedIdentitiesEnterprise(array $params): ScimEnterpriseUserList|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php index a2bc43ce23e..282cda757e7 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php @@ -90,7 +90,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\ScimEnterpriseGroupList|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Schema\ScimEnterpriseUserList|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): ActionsCacheUsageOrgEnterprise|ActionsHostedRunnerLimits|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok|ActionsHostedRunner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|GetAuditLogStreamConfig|CodeSecurityConfiguration|WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|CustomProperty|ActionsBillingUsage|AdvancedSecurityActiveCommitters|GetAllCostCenters|PackagesBillingUsage|CombinedBillingUsage|BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|CopilotSeatDetails|Package|RuleSuite|NetworkConfiguration|NetworkSettings|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|SecretScanningScanHistory|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|ScimEnterpriseGroupList|ScimEnterpriseUserList|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Operation/EnterpriseAdmin.php b/clients/GitHubEnterpriseCloud/src/Operation/EnterpriseAdmin.php index cf7964570c6..367071852c8 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/EnterpriseAdmin.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/EnterpriseAdmin.php @@ -347,6 +347,7 @@ public function getEnterpriseRulesetVersion(string $enterprise, int $rulesetId, return $this->operators->enterpriseAdmin👷GetEnterpriseRulesetVersion()->call($enterprise, $rulesetId, $versionId); } + /** @return */ public function listProvisionedGroupsEnterprise(string $filter, string $excludedAttributes, string $enterprise, int $startIndex, int $count): ScimEnterpriseGroupList|WithoutBody { return $this->operators->enterpriseAdmin👷ListProvisionedGroupsEnterprise()->call($filter, $excludedAttributes, $enterprise, $startIndex, $count); @@ -382,6 +383,7 @@ public function updateAttributeForEnterpriseGroup(string $scimGroupId, string $e return $this->operators->enterpriseAdmin👷UpdateAttributeForEnterpriseGroup()->call($scimGroupId, $enterprise, $params); } + /** @return */ public function listProvisionedIdentitiesEnterprise(string $filter, string $enterprise, int $startIndex, int $count): ScimEnterpriseUserList|WithoutBody { return $this->operators->enterpriseAdmin👷ListProvisionedIdentitiesEnterprise()->call($filter, $enterprise, $startIndex, $count); diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index b9c89771b11..908abbf5fa9 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -4532,7 +4532,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /scim/v2/enterprises/{enterprise}/Groups') { - return $this->typeResolver->resolve('Schema\\ScimEnterpriseGroupList|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'POST /scim/v2/enterprises/{enterprise}/Groups') { @@ -4556,7 +4556,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /scim/v2/enterprises/{enterprise}/Users') { - return $this->typeResolver->resolve('Schema\\ScimEnterpriseUserList|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'POST /scim/v2/enterprises/{enterprise}/Users') { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/CopilotOrganizationDetails.php b/clients/GitHubEnterpriseCloud/src/Schema/CopilotOrganizationDetails.php index 430c4f1226b..8990b8b5dd3 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/CopilotOrganizationDetails.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/CopilotOrganizationDetails.php @@ -19,7 +19,7 @@ "type": "object", "properties": { "seat_breakdown": { - "title": "Copilot Business Seat Breakdown", + "title": "Copilot Seat Breakdown", "type": "object", "properties": { "total": { @@ -36,7 +36,7 @@ }, "pending_invitation": { "type": "integer", - "description": "The number of seats that have been assigned to users that have not yet accepted an invitation to this organization." + "description": "The number of users who have been invited to receive a Copilot seat through this organization." }, "active_this_cycle": { "type": "integer", @@ -53,11 +53,10 @@ "enum": [ "allow", "block", - "unconfigured", - "unknown" + "unconfigured" ], "type": "string", - "description": "The organization policy for allowing or disallowing Copilot to make suggestions that match public code." + "description": "The organization policy for allowing or blocking suggestions matching public code (duplication detection filter)." }, "ide_chat": { "enum": [ @@ -66,7 +65,7 @@ "unconfigured" ], "type": "string", - "description": "The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor." + "description": "The organization policy for allowing or disallowing Copilot Chat in the IDE." }, "platform_chat": { "enum": [ @@ -75,7 +74,7 @@ "unconfigured" ], "type": "string", - "description": "The organization policy for allowing or disallowing organization members to use Copilot features within github.com." + "description": "The organization policy for allowing or disallowing Copilot features on GitHub.com." }, "cli": { "enum": [ @@ -84,7 +83,7 @@ "unconfigured" ], "type": "string", - "description": "The organization policy for allowing or disallowing organization members to use Copilot within their CLI." + "description": "The organization policy for allowing or disallowing Copilot in the CLI." }, "seat_management_setting": { "enum": [ @@ -99,8 +98,7 @@ "plan_type": { "enum": [ "business", - "enterprise", - "unknown" + "enterprise" ], "type": "string", "description": "The Copilot plan of the organization, or the parent enterprise, when applicable." @@ -130,15 +128,15 @@ /** * seatBreakdown: The breakdown of Copilot Business seats for the organization. - * publicCodeSuggestions: The organization policy for allowing or disallowing Copilot to make suggestions that match public code. - * ideChat: The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor. - * platformChat: The organization policy for allowing or disallowing organization members to use Copilot features within github.com. - * cli: The organization policy for allowing or disallowing organization members to use Copilot within their CLI. + * publicCodeSuggestions: The organization policy for allowing or blocking suggestions matching public code (duplication detection filter). + * ideChat: The organization policy for allowing or disallowing Copilot Chat in the IDE. + * platformChat: The organization policy for allowing or disallowing Copilot features on GitHub.com. + * cli: The organization policy for allowing or disallowing Copilot in the CLI. * seatManagementSetting: The mode of assigning new seats. * planType: The Copilot plan of the organization, or the parent enterprise, when applicable. */ public function __construct(#[MapFrom('seat_breakdown')] - public Schema\CopilotSeatBreakdown $seatBreakdown, #[MapFrom('public_code_suggestions')] + public Schema\CopilotOrganizationSeatBreakdown $seatBreakdown, #[MapFrom('public_code_suggestions')] public string $publicCodeSuggestions, #[MapFrom('ide_chat')] public string|null $ideChat, #[MapFrom('platform_chat')] public string|null $platformChat, public string|null $cli, #[MapFrom('seat_management_setting')] diff --git a/clients/GitHubEnterpriseCloud/src/Schema/CopilotSeatBreakdown.php b/clients/GitHubEnterpriseCloud/src/Schema/CopilotOrganizationSeatBreakdown.php similarity index 84% rename from clients/GitHubEnterpriseCloud/src/Schema/CopilotSeatBreakdown.php rename to clients/GitHubEnterpriseCloud/src/Schema/CopilotOrganizationSeatBreakdown.php index 88635d9f420..cc852f85102 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/CopilotSeatBreakdown.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/CopilotOrganizationSeatBreakdown.php @@ -6,10 +6,10 @@ use EventSauce\ObjectHydrator\MapFrom; -final readonly class CopilotSeatBreakdown +final readonly class CopilotOrganizationSeatBreakdown { public const SCHEMA_JSON = '{ - "title": "Copilot Business Seat Breakdown", + "title": "Copilot Seat Breakdown", "type": "object", "properties": { "total": { @@ -26,7 +26,7 @@ }, "pending_invitation": { "type": "integer", - "description": "The number of seats that have been assigned to users that have not yet accepted an invitation to this organization." + "description": "The number of users who have been invited to receive a Copilot seat through this organization." }, "active_this_cycle": { "type": "integer", @@ -39,7 +39,7 @@ }, "description": "The breakdown of Copilot Business seats for the organization." }'; - public const SCHEMA_TITLE = 'Copilot Business Seat Breakdown'; + public const SCHEMA_TITLE = 'Copilot Seat Breakdown'; public const SCHEMA_DESCRIPTION = 'The breakdown of Copilot Business seats for the organization.'; public const SCHEMA_EXAMPLE_DATA = '{ "total": 5, @@ -54,7 +54,7 @@ * total: The total number of seats being billed for the organization as of the current billing cycle. * addedThisCycle: Seats added during the current billing cycle. * pendingCancellation: The number of seats that are pending cancellation at the end of the current billing cycle. - * pendingInvitation: The number of seats that have been assigned to users that have not yet accepted an invitation to this organization. + * pendingInvitation: The number of users who have been invited to receive a Copilot seat through this organization. * activeThisCycle: The number of seats that have used Copilot during the current billing cycle. * inactiveThisCycle: The number of seats that have not used Copilot during the current billing cycle. */ diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index c93b4292e34..35753c17200 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -1139,13 +1139,13 @@ function authHeader(): string assertType('Observable', $client->call('STREAM /repos/{owner}/{repo}/zipball/{ref}')); assertType('', $client->call('POST /repos/{template_owner}/{template_repo}/generate')); assertType('Observable|WithoutBody', $client->call('GET /repositories')); -assertType('Schema\\ScimEnterpriseGroupList|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /scim/v2/enterprises/{enterprise}/Groups')); +assertType('', $client->call('GET /scim/v2/enterprises/{enterprise}/Groups')); assertType('', $client->call('POST /scim/v2/enterprises/{enterprise}/Groups')); assertType('', $client->call('GET /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}')); assertType('', $client->call('PUT /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}')); assertType('', $client->call('DELETE /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}')); assertType('', $client->call('PATCH /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}')); -assertType('Schema\\ScimEnterpriseUserList|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /scim/v2/enterprises/{enterprise}/Users')); +assertType('', $client->call('GET /scim/v2/enterprises/{enterprise}/Users')); assertType('', $client->call('POST /scim/v2/enterprises/{enterprise}/Users')); assertType('', $client->call('GET /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}')); assertType('', $client->call('PUT /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 2e409141949..f28ee27f92c 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -86883,8 +86883,8 @@ components: required: - key_id - key - copilot-seat-breakdown: - title: Copilot Business Seat Breakdown + copilot-organization-seat-breakdown: + title: Copilot Seat Breakdown description: The breakdown of Copilot Business seats for the organization. type: object properties: @@ -86901,8 +86901,8 @@ components: of the current billing cycle. pending_invitation: type: integer - description: The number of seats that have been assigned to users that have - not yet accepted an invitation to this organization. + description: The number of users who have been invited to receive a Copilot + seat through this organization. active_this_cycle: type: integer description: The number of seats that have used Copilot during the current @@ -86918,36 +86918,35 @@ components: type: object properties: seat_breakdown: - "$ref": "#/components/schemas/copilot-seat-breakdown" + "$ref": "#/components/schemas/copilot-organization-seat-breakdown" public_code_suggestions: type: string - description: The organization policy for allowing or disallowing Copilot - to make suggestions that match public code. + description: The organization policy for allowing or blocking suggestions + matching public code (duplication detection filter). enum: - allow - block - unconfigured - - unknown ide_chat: type: string - description: The organization policy for allowing or disallowing organization - members to use Copilot Chat within their editor. + description: The organization policy for allowing or disallowing Copilot + Chat in the IDE. enum: - enabled - disabled - unconfigured platform_chat: type: string - description: The organization policy for allowing or disallowing organization - members to use Copilot features within github.com. + description: The organization policy for allowing or disallowing Copilot + features on GitHub.com. enum: - enabled - disabled - unconfigured cli: type: string - description: The organization policy for allowing or disallowing organization - members to use Copilot within their CLI. + description: The organization policy for allowing or disallowing Copilot + in the CLI. enum: - enabled - disabled @@ -86967,7 +86966,6 @@ components: enum: - business - enterprise - - unknown required: - seat_breakdown - public_code_suggestions