diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 2ded0a6e8c3..c7264e978a1 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "b5681abce03354e41943d59e8d8bc4a6", + "specHash": "49b27bf070e71e6e97e24f657713d508", "generatedFiles": { "files": [ { @@ -524,7 +524,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRulesetBypassActor.php", - "hash": "83705a685ea73d3e8f172764ffba2711" + "hash": "dc82239b09fe63b1697224ad37c0fdbd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRulesetConditions.php", @@ -604,7 +604,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php", - "hash": "7dc0b80dc766b24c64d6353f9288bca2" + "hash": "c843f67c31fcd76ac582718ea47638f5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsBillingUsage.php", @@ -4628,11 +4628,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "2d758ff47c0f464f876fe60b002bb218" + "hash": "13042d7a14975b2249026b72dd812652" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "9edc8dc810d292fb2055f23e871ef364" + "hash": "1edeeea4b84e11b682c75c5c6b6b54c0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php", @@ -5336,11 +5336,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "a28310fd5df67997cd6f0c1300ddcee9" + "hash": "0ab731fc14eb03e78cfd82a58eca12fd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "200b734577fe064c81af8da3f7494686" + "hash": "2201c11f099d3ac2ea4ad74883a560af" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php", @@ -11716,7 +11716,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Copilot.php", - "hash": "eae816e0c48c6fa4021b89839b99e0e3" + "hash": "9206c58c493880b78c7635014f0bfd79" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CheckAutomatedSecurityFixes.php", @@ -11800,15 +11800,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php", - "hash": "4c877288af50a7b7334cb1bc2fd52324" + "hash": "2c3260075e7768a8b5b8800d6ae38ca2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php", - "hash": "0dc395659ee136b10835c9fba64a5f11" + "hash": "02db9d8e78d1d67bb97ca20eed00f61a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php", - "hash": "6dd804426a30e9e4498933adb821994b" + "hash": "a7b4ff9e527950333fe8efd2489b1eb1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewApproved\/WorkflowRun\/Actor.php", @@ -24524,7 +24524,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Copilot.php", - "hash": "8b936b37b66653bfe68e7d5c9e903dbe" + "hash": "f012aa355b654d0e2f69e39aac157b60" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Pulls.php", @@ -24968,7 +24968,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "d6f9d7d9cf0b5127d80c1b292b76a01b" + "hash": "7b3ace4276160bd45f54a517e04aaa29" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -25072,7 +25072,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "0d048e7679a28ebc3cbaab5f44636b07" + "hash": "64f9913225cd6f7fb8ad53af54273c48" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -27780,11 +27780,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "2dac8d6824cdb9a032de120fac8e5b75" + "hash": "f55c989a25ec9f9dc06cfcc1e8504b34" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "9161ea27ab511d49e7c518b43f27d4b8" + "hash": "6f4877898093b3039793e27526c72f5d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -28824,7 +28824,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Copilot.php", - "hash": "d6fd0fdf4414bbaf810ab2c00e35b6e5" + "hash": "b4881d91a00c49c81b0860e3655eaf9e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Copilot\/Usage.php", @@ -30268,7 +30268,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForEnterpriseTeam.php", - "hash": "93c5ff91ebc5037b265c25b2d5a761e0" + "hash": "77fd8338403e4faad13b5ac00799a5a6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTeamTest.php", @@ -30280,7 +30280,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForEnterpriseTeamListing.php", - "hash": "cc44d2af63389bf87432f1584ebb22ed" + "hash": "80d1e8bd251a0e5fb7eedfbe1bc3c780" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTeamListingTest.php", diff --git a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeam.php b/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeam.php index 5ae07a3a37f..33b847c54d9 100644 --- a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeam.php +++ b/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeam.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $enterprise, string $teamSlug, string $since, string $until, int $page = 1, int $perPage = 28): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\UsageMetricsForEnterpriseTeam($this->responseSchemaValidator, $this->hydrator, $enterprise, $teamSlug, $since, $until, $page, $perPage); diff --git a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeamListing.php b/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeamListing.php index 0ae9ccc3a19..8973d67374f 100644 --- a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeamListing.php +++ b/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeamListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $enterprise, string $teamSlug, string $since, string $until, int $page = 1, int $perPage = 28): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\UsageMetricsForEnterpriseTeamListing($this->responseSchemaValidator, $this->hydrator, $enterprise, $teamSlug, $since, $until, $page, $perPage); diff --git a/clients/GitHub/src/Internal/Router/Get/Copilot.php b/clients/GitHub/src/Internal/Router/Get/Copilot.php index c53e98c1917..a0f123b2a71 100644 --- a/clients/GitHub/src/Internal/Router/Get/Copilot.php +++ b/clients/GitHub/src/Internal/Router/Get/Copilot.php @@ -191,7 +191,7 @@ public function getCopilotSeatDetailsForUser(array $params): CopilotSeatDetails| return $operator->call($arguments['org'], $arguments['username']); } - /** @return iterable */ + /** @return Observable */ public function usageMetricsForEnterpriseTeam(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Seven.php b/clients/GitHub/src/Internal/Router/Get/Seven.php index 5ed2d0c3469..b0bdb1cd8bf 100644 --- a/clients/GitHub/src/Internal/Router/Get/Seven.php +++ b/clients/GitHub/src/Internal/Router/Get/Seven.php @@ -63,7 +63,7 @@ public function __construct(private Routers $routers) { } - /** @return iterable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|OidcCustomSub|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|Json|WithoutBody|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PagesDeploymentStatus|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|RuleSuite|SecretScanningAlert|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Copilot.php b/clients/GitHub/src/Internal/Router/List/Copilot.php index f13a76250a8..f0cec38322f 100644 --- a/clients/GitHub/src/Internal/Router/List/Copilot.php +++ b/clients/GitHub/src/Internal/Router/List/Copilot.php @@ -110,7 +110,7 @@ public function usageMetricsForOrgListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function usageMetricsForEnterpriseTeamListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/List/Seven.php b/clients/GitHub/src/Internal/Router/List/Seven.php index 9dfce88ae3b..ca8de6d779f 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 iterable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Operation/Copilot.php b/clients/GitHub/src/Operation/Copilot.php index fdfb6539d9a..050685ed146 100644 --- a/clients/GitHub/src/Operation/Copilot.php +++ b/clients/GitHub/src/Operation/Copilot.php @@ -37,13 +37,13 @@ public function usageMetricsForEnterpriseListing(string $enterprise, string $sin return $this->operators->copilot👷UsageMetricsForEnterpriseListing()->call($enterprise, $since, $until, $page, $perPage); } - /** @return iterable */ + /** @return Observable */ public function usageMetricsForEnterpriseTeam(string $enterprise, string $teamSlug, string $since, string $until, int $page, int $perPage): iterable { return $this->operators->copilot👷UsageMetricsForEnterpriseTeam()->call($enterprise, $teamSlug, $since, $until, $page, $perPage); } - /** @return iterable */ + /** @return Observable */ public function usageMetricsForEnterpriseTeamListing(string $enterprise, string $teamSlug, string $since, string $until, int $page, int $perPage): iterable { return $this->operators->copilot👷UsageMetricsForEnterpriseTeamListing()->call($enterprise, $teamSlug, $since, $until, $page, $perPage); diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 30555c13c6f..3fa47d70472 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -212,11 +212,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /enterprises/{enterprise}/team/{team_slug}/copilot/usage') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /enterprises/{enterprise}/team/{team_slug}/copilot/usage') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /events') { diff --git a/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php index a44d7b4f7ff..ec20e66f37d 100644 --- a/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php @@ -62,7 +62,8 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseTeam" ], "type": "string", "description": "The type of actor that can bypass a ruleset.\\n" @@ -1148,12 +1149,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" } ], diff --git a/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php index a7bf237d3f8..6d43898c436 100644 --- a/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php @@ -61,7 +61,8 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseTeam" ], "type": "string", "description": "The type of actor that can bypass a ruleset.\\n" @@ -929,12 +930,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" } ], diff --git a/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php index 015707e7235..a6fea5dfe96 100644 --- a/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php @@ -58,7 +58,8 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseTeam" ], "type": "string", "description": "The type of actor that can bypass a ruleset.\\n" @@ -1144,12 +1145,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" } ], diff --git a/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php index 16858dba04d..feea890601a 100644 --- a/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php @@ -57,7 +57,8 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseTeam" ], "type": "string", "description": "The type of actor that can bypass a ruleset.\\n" @@ -925,12 +926,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" } ], diff --git a/clients/GitHub/src/Schema/RepositoryRuleset.php b/clients/GitHub/src/Schema/RepositoryRuleset.php index 0b60ceda091..38d14faa42c 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset.php +++ b/clients/GitHub/src/Schema/RepositoryRuleset.php @@ -81,7 +81,8 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseTeam" ], "type": "string", "description": "The type of actor that can bypass a ruleset.\\n" @@ -1247,12 +1248,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" } ], diff --git a/clients/GitHub/src/Schema/RepositoryRulesetBypassActor.php b/clients/GitHub/src/Schema/RepositoryRulesetBypassActor.php index 96178493151..4075579941a 100644 --- a/clients/GitHub/src/Schema/RepositoryRulesetBypassActor.php +++ b/clients/GitHub/src/Schema/RepositoryRulesetBypassActor.php @@ -29,7 +29,8 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseTeam" ], "type": "string", "description": "The type of actor that can bypass a ruleset.\\n" @@ -49,7 +50,7 @@ public const SCHEMA_DESCRIPTION = 'An actor that can bypass rules in a ruleset'; public const SCHEMA_EXAMPLE_DATA = '{ "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" }'; diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php index c308f933a2f..092c968a51c 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php @@ -1786,7 +1786,8 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseTeam" ], "type": "string", "description": "The type of actor that can bypass a ruleset.\\n" @@ -3425,12 +3426,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" } ], diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php index 364dc655374..d9b9ca1e7b1 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php @@ -1786,7 +1786,8 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseTeam" ], "type": "string", "description": "The type of actor that can bypass a ruleset.\\n" @@ -3425,12 +3426,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" } ], diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php index a8c6416dd97..8b0bf07e538 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php @@ -1786,7 +1786,8 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseTeam" ], "type": "string", "description": "The type of actor that can bypass a ruleset.\\n" @@ -6061,12 +6062,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseTeam", "bypass_mode": "always" } ], diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index 596aa661d82..53914484335 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -59,8 +59,8 @@ function authHeader(): string assertType('Observable', $client->call('LIST /enterprises/{enterprise}/copilot/usage')); assertType('Observable|WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/secret-scanning/alerts')); -assertType('iterable', $client->call('GET /enterprises/{enterprise}/team/{team_slug}/copilot/usage')); -assertType('iterable', $client->call('LIST /enterprises/{enterprise}/team/{team_slug}/copilot/usage')); +assertType('Observable', $client->call('GET /enterprises/{enterprise}/team/{team_slug}/copilot/usage')); +assertType('Observable', $client->call('LIST /enterprises/{enterprise}/team/{team_slug}/copilot/usage')); assertType('Observable|WithoutBody', $client->call('GET /events')); assertType('Observable|WithoutBody', $client->call('LIST /events')); assertType('', $client->call('GET /feeds')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 52f4354bcc3..29c47122ff0 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -73346,6 +73346,7 @@ components: - RepositoryRole - Team - DeployKey + - EnterpriseTeam description: 'The type of actor that can bypass a ruleset. '