From cde020429370ceeaf30caed65747cb827d0f30bb Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:14:20 +0000 Subject: [PATCH] [GitHub] Update to 1.1.4-758801dbed7c532f009e5f428e0454a9 from 1.1.4-569ed36cc004e0f3ecba0e072fcfa984 Detected Schema changes: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ├─┬Paths │ ├──[➕] path (1766:3) │ ├──[➕] path (1578:3) │ ├──[➕] path (1436:3) │ ├──[➕] path (1507:3) │ ├──[➕] path (1844:3) │ ├─┬/orgs/{org}/secret-scanning/alerts │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ └──[🔀] value (202748:7) │ ├─┬/repos/{owner}/{repo}/secret-scanning/alerts │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ └──[🔀] value (220483:7) │ ├─┬/users/{username}/attestations/{subject_digest} │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬Schema │ │ └─┬attestations │ │ └─┬Schema │ │ └──[➖] properties (47530:25)❌ │ ├─┬/repos/{owner}/{repo}/attestations/{subject_digest} │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬Schema │ │ └─┬attestations │ │ └─┬Schema │ │ └──[➖] properties (20467:25)❌ │ ├─┬/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number} │ │ ├─┬GET │ │ │ └─┬Responses │ │ │ └─┬200 │ │ │ └─┬application/json │ │ │ └─┬default │ │ │ ├──[🔀] value (220583:9) │ │ │ ├──[🔀] value (220583:9) │ │ │ ├──[🔀] value (220583:9) │ │ │ ├──[🔀] value (220583:9) │ │ │ ├──[🔀] value (220583:9) │ │ │ ├──[🔀] value (220583:9) │ │ │ ├──[🔀] value (220583:9) │ │ │ ├──[🔀] value (220583:9) │ │ │ ├──[🔀] value (220583:9) │ │ │ ├──[🔀] value (220583:9) │ │ │ ├──[🔀] value (220583:9) │ │ │ ├──[🔀] value (220583:9) │ │ │ ├──[🔀] value (220583:9) │ │ │ └──[➖] value (220191:9) │ │ └─┬PATCH │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ ├──[🔀] value (220607:9) │ │ ├──[🔀] value (220607:9) │ │ ├──[🔀] value (220607:9) │ │ ├──[🔀] value (220607:9) │ │ ├──[🔀] value (220607:9) │ │ ├──[🔀] value (220607:9) │ │ ├──[🔀] value (220607:9) │ │ ├──[🔀] value (220607:9) │ │ ├──[🔀] value (220607:9) │ │ ├──[🔀] value (220607:9) │ │ ├──[🔀] value (220607:9) │ │ ├──[🔀] value (220607:9) │ │ ├──[🔀] value (220607:9) │ │ └──[➖] value (220216:9) │ ├─┬/enterprises/{enterprise}/secret-scanning/alerts │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ └──[🔀] value (202748:7) │ ├─┬/orgs/{org}/rulesets │ │ └─┬POST │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └─┬target │ │ └──[➖] enum (13371:21)❌ │ ├─┬/orgs/{org}/attestations/{subject_digest} │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬Schema │ │ └─┬attestations │ │ └─┬Schema │ │ └──[➖] properties (6389:25)❌ │ ├─┬/orgs/{org}/rulesets/{ruleset_id} │ │ └─┬PUT │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └─┬target │ │ └──[➖] enum (13588:21)❌ │ ├─┬/rate_limit │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ └──[🔀] value (209556:9) │ └─┬/orgs/{org}/properties/schema/{custom_property_name} │ └─┬PUT │ └─┬Requestbody │ └─┬application/json │ └─┬Schema │ └──[🔀] $ref (13109:15)❌ └─┬Components ├──[➕] parameters (226707:7) ├──[➕] examples (202372:7) ├──[➖] schemas (75329:7)❌ ├─┬secret-scanning-alert-webhook │ └──[➖] properties (101570:9)❌ ├─┬rate-limit-overview │ └─┬resources │ └──[➖] properties (78921:13)❌ ├─┬organization-secret-scanning-alert │ └──[➖] properties (69281:9)❌ ├─┬repository-rule-pull-request │ └─┬parameters │ └──[➖] properties (76383:13)❌ ├─┬repository-ruleset │ ├─┬source_type │ │ └──[➖] enum (76902:13)❌ │ └─┬target │ └──[➖] enum (76895:13)❌ ├─┬secret-scanning-alert │ └──[➖] properties (88985:9)❌ └─┬org-ruleset-conditions └──[🔀] description (76520:20) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 43 | 6 | | components | 11 | 8 | Date: 12/12/24 | Commit: New: etc/specs/GitHub/previous.spec.yaml, Original: etc/specs/GitHub/current.spec.yaml - ❌ **BREAKING Changes**: _14_ out of _54_ - **Modifications**: _32_ - **Removals**: _15_ - **Additions**: _7_ - **Breaking Removals**: _13_ - **Breaking Modifications**: _1_ ERROR: breaking changes discovered --- clients/GitHub/README.md | 256 -- .../GitHub/etc/openapi-client-generator.state | 294 +- clients/GitHub/src/Client.php | 14 +- clients/GitHub/src/ClientInterface.php | 2 +- .../Enterprise/Copilot/Billing/Seats.php | 361 --- .../Enterprise/Copilot/Metrics.php | 286 -- .../Enterprises/Enterprise/Copilot/Usage.php | 286 -- .../Team/TeamSlug/Copilot/Metrics.php | 286 -- .../Team/TeamSlug/Copilot/Usage.php | 286 -- .../Internal/Hydrator/Operation/RateLimit.php | 29 + .../SecretScanning/Alerts/AlertNumber.php | 19 + .../Hydrator/WebHook/SecretScanningAlert.php | 19 + .../WebHook/SecretScanningAlertLocation.php | 19 + clients/GitHub/src/Internal/Hydrators.php | 52 - .../Copilot/CopilotMetricsForEnterprise.php | 118 - .../CopilotMetricsForEnterpriseListing.php | 118 - .../CopilotMetricsForEnterpriseTeam.php | 121 - ...CopilotMetricsForEnterpriseTeamListing.php | 121 - .../Copilot/ListCopilotSeatsForEnterprise.php | 98 - .../Copilot/UsageMetricsForEnterprise.php | 118 - .../UsageMetricsForEnterpriseListing.php | 118 - .../Copilot/UsageMetricsForEnterpriseTeam.php | 121 - .../UsageMetricsForEnterpriseTeamListing.php | 121 - .../Orgs/CreateOrUpdateCustomProperty.php | 2 +- .../Copilot/CopilotMetricsForEnterprise.php | 41 - .../CopilotMetricsForEnterpriseListing.php | 41 - .../CopilotMetricsForEnterpriseTeam.php | 41 - ...CopilotMetricsForEnterpriseTeamListing.php | 41 - .../Copilot/ListCopilotSeatsForEnterprise.php | 41 - .../Copilot/UsageMetricsForEnterprise.php | 41 - .../UsageMetricsForEnterpriseListing.php | 41 - .../Copilot/UsageMetricsForEnterpriseTeam.php | 41 - .../UsageMetricsForEnterpriseTeamListing.php | 41 - .../Orgs/CreateOrUpdateCustomProperty.php | 1 - clients/GitHub/src/Internal/Operators.php | 90 - .../src/Internal/Router/Get/Copilot.php | 199 +- .../GitHub/src/Internal/Router/Get/Five.php | 14 +- .../GitHub/src/Internal/Router/Get/Seven.php | 24 +- .../GitHub/src/Internal/Router/Get/Six.php | 20 +- .../src/Internal/Router/List/ApiInsights.php | 80 +- .../src/Internal/Router/List/Copilot.php | 192 -- .../GitHub/src/Internal/Router/List/Five.php | 18 +- .../src/Internal/Router/List/Issues.php | 118 +- .../src/Internal/Router/List/Packages.php | 24 +- .../GitHub/src/Internal/Router/List/Pulls.php | 86 +- .../src/Internal/Router/List/Reactions.php | 174 +- .../GitHub/src/Internal/Router/List/Repos.php | 160 +- .../GitHub/src/Internal/Router/List/Seven.php | 22 +- .../GitHub/src/Internal/Router/Put/Orgs.php | 1 - .../GitHub/src/Internal/Router/Put/Six.php | 1 + clients/GitHub/src/Internal/Routers.php | 58 +- clients/GitHub/src/Operation/Copilot.php | 58 +- clients/GitHub/src/Operation/Orgs.php | 1 - clients/GitHub/src/Operations.php | 10 +- clients/GitHub/src/OperationsInterface.php | 4 +- .../src/PHPStan/ClientCallReturnTypes.php | 38 +- .../Tiet6044DE21/Tiet16F5868C.php} | 13 +- .../Tiet71BBCC18/TietF732B93A.php} | 13 +- ...nJson.php => CustomPropertySetPayload.php} | 12 +- .../Response/ApplicationJson/Ok.php | 745 ----- .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Attestations.php | 2 +- .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Application/Json.php | 2 +- .../Ok/Application/Json/Attestations.php | 2 +- .../Response/ApplicationJson/Ok.php | 9 +- .../ApplicationJson/Ok/Attestations.php | 9 +- .../src/Schema/OrgRulesetConditions.php | 5 +- .../OrganizationSecretScanningAlert.php | 12 +- .../GitHub/src/Schema/RateLimitOverview.php | 30 + .../Schema/RateLimitOverview/Resources.php | 33 +- .../Request/ApplicationJson.php | 15 +- .../Request/ApplicationJson.php | 7 + .../Request/ApplicationJson.php | 15 +- .../Request/ApplicationJson.php | 7 + clients/GitHub/src/Schema/RepositoryRule.php | 7 + .../src/Schema/RepositoryRuleDetailed.php | 7 + .../src/Schema/RepositoryRulePullRequest.php | 11 + .../RepositoryRulePullRequest/Parameters.php | 15 +- .../GitHub/src/Schema/RepositoryRuleset.php | 17 +- .../GitHub/src/Schema/SecretScanningAlert.php | 12 +- .../src/Schema/SecretScanningAlertWebhook.php | 12 +- .../WebhookRepositoryRulesetCreated.php | 17 +- .../WebhookRepositoryRulesetDeleted.php | 17 +- .../Schema/WebhookRepositoryRulesetEdited.php | 38 +- .../Changes.php | 21 + .../Changes/Rules.php | 21 + .../Changes/Rules/Updated.php | 7 + .../WebhookSecretScanningAlertCreated.php | 8 + ...hookSecretScanningAlertLocationCreated.php | 8 + ...bhookSecretScanningAlertPubliclyLeaked.php | 8 + .../WebhookSecretScanningAlertReopened.php | 8 + .../WebhookSecretScanningAlertResolved.php | 8 + .../WebhookSecretScanningAlertValidated.php | 8 + ...CopilotMetricsForEnterpriseListingTest.php | 191 -- ...lotMetricsForEnterpriseTeamListingTest.php | 195 -- .../CopilotMetricsForEnterpriseTeamTest.php | 179 -- .../CopilotMetricsForEnterpriseTest.php | 175 -- .../ListCopilotSeatsForEnterpriseTest.php | 201 -- .../UsageMetricsForEnterpriseListingTest.php | 191 -- ...ageMetricsForEnterpriseTeamListingTest.php | 195 -- .../UsageMetricsForEnterpriseTeamTest.php | 179 -- .../Copilot/UsageMetricsForEnterpriseTest.php | 175 -- .../Orgs/CreateOrUpdateCustomPropertyTest.php | 24 +- .../tests/Types/ClientCallReturnTypes.php | 11 +- etc/specs/GitHub/current.spec.yaml | 2513 +++++++---------- 106 files changed, 2012 insertions(+), 8429 deletions(-) delete mode 100644 clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Copilot/Billing/Seats.php delete mode 100644 clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Copilot/Metrics.php delete mode 100644 clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Copilot/Usage.php delete mode 100644 clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Team/TeamSlug/Copilot/Metrics.php delete mode 100644 clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Team/TeamSlug/Copilot/Usage.php delete mode 100644 clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterprise.php delete mode 100644 clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterpriseListing.php delete mode 100644 clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeam.php delete mode 100644 clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeamListing.php delete mode 100644 clients/GitHub/src/Internal/Operation/Copilot/ListCopilotSeatsForEnterprise.php delete mode 100644 clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForEnterprise.php delete mode 100644 clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseListing.php delete mode 100644 clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeam.php delete mode 100644 clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListing.php delete mode 100644 clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterprise.php delete mode 100644 clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterpriseListing.php delete mode 100644 clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterpriseTeam.php delete mode 100644 clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterpriseTeamListing.php delete mode 100644 clients/GitHub/src/Internal/Operator/Copilot/ListCopilotSeatsForEnterprise.php delete mode 100644 clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterprise.php delete mode 100644 clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseListing.php delete mode 100644 clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeam.php delete mode 100644 clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeamListing.php rename clients/GitHub/src/Schema/AliasAbstract/{Tiet8EA83230/TietFF947D7F/Tiet4FFBD303/TietF22B5455.php => Tiet9EC65F6E/Tiet54735A02/Tiet6044DE21/Tiet16F5868C.php} (84%) rename clients/GitHub/src/Schema/AliasAbstract/{Tiet78CFC607/Tiet96B6C16A/TietC35E0421/TietD975B03C.php => TietE2314769/Tiet2BBD4166/Tiet71BBCC18/TietF732B93A.php} (83%) rename clients/GitHub/src/Schema/{Orgs/CreateOrUpdateCustomProperty/Request/ApplicationJson.php => CustomPropertySetPayload.php} (88%) delete mode 100644 clients/GitHub/src/Schema/Operations/Copilot/ListCopilotSeatsForEnterprise/Response/ApplicationJson/Ok.php delete mode 100644 clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseListingTest.php delete mode 100644 clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeamListingTest.php delete mode 100644 clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeamTest.php delete mode 100644 clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTest.php delete mode 100644 clients/GitHub/tests/Internal/Operation/Copilot/ListCopilotSeatsForEnterpriseTest.php delete mode 100644 clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseListingTest.php delete mode 100644 clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListingTest.php delete mode 100644 clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamTest.php delete mode 100644 clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTest.php diff --git a/clients/GitHub/README.md b/clients/GitHub/README.md index fba2ad98904..fe8e9ddef0a 100644 --- a/clients/GitHub/README.md +++ b/clients/GitHub/README.md @@ -830,142 +830,6 @@ $client->operations()->emojis()->get(); You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/emojis/emojis#get-emojis). -### copilot/list-copilot-seats-for-enterprise - -List all Copilot seat assignments for an enterprise - -Using the `call` method: -```php -$client->call('GET /enterprises/{enterprise}/copilot/billing/seats', [ - 'enterprise' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->listCopilotSeatsForEnterprise( enterprise: '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-user-management#list-all-copilot-seat-assignments-for-an-enterprise). - - -### copilot/copilot-metrics-for-enterprise - -Get Copilot metrics for an enterprise - -Using the `call` method: -```php -$client->call('GET /enterprises/{enterprise}/copilot/metrics', [ - 'enterprise' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->copilotMetricsForEnterprise( enterprise: '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-metrics#get-copilot-metrics-for-an-enterprise). - - -### copilot/copilot-metrics-for-enterprise - -Get Copilot metrics for an enterprise - -Using the `call` method: -```php -$client->call('LIST /enterprises/{enterprise}/copilot/metrics', [ - 'enterprise' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->copilotMetricsForEnterpriseListing( enterprise: '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-metrics#get-copilot-metrics-for-an-enterprise). - - -### copilot/usage-metrics-for-enterprise - -Get a summary of Copilot usage for enterprise members - -Using the `call` method: -```php -$client->call('GET /enterprises/{enterprise}/copilot/usage', [ - 'enterprise' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForEnterprise( enterprise: '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-enterprise-members). - - -### copilot/usage-metrics-for-enterprise - -Get a summary of Copilot usage for enterprise members - -Using the `call` method: -```php -$client->call('LIST /enterprises/{enterprise}/copilot/usage', [ - 'enterprise' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForEnterpriseListing( enterprise: '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-enterprise-members). - - ### dependabot/list-alerts-for-enterprise List Dependabot alerts for an enterprise @@ -1052,126 +916,6 @@ $client->operations()->secretScanning()->listAlertsForEnterprise( enterpr You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-an-enterprise). -### copilot/copilot-metrics-for-enterprise-team - -Get Copilot metrics for an enterprise team - -Using the `call` method: -```php -$client->call('GET /enterprises/{enterprise}/team/{team_slug}/copilot/metrics', [ - 'enterprise' => 'generated', - 'team_slug' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->copilotMetricsForEnterpriseTeam( enterprise: '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-metrics#get-copilot-metrics-for-an-enterprise-team). - - -### copilot/copilot-metrics-for-enterprise-team - -Get Copilot metrics for an enterprise team - -Using the `call` method: -```php -$client->call('LIST /enterprises/{enterprise}/team/{team_slug}/copilot/metrics', [ - 'enterprise' => 'generated', - 'team_slug' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->copilotMetricsForEnterpriseTeamListing( enterprise: '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-metrics#get-copilot-metrics-for-an-enterprise-team). - - -### copilot/usage-metrics-for-enterprise-team - -Get a summary of Copilot usage for an enterprise team - -Using the `call` method: -```php -$client->call('GET /enterprises/{enterprise}/team/{team_slug}/copilot/usage', [ - 'enterprise' => 'generated', - 'team_slug' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForEnterpriseTeam( enterprise: '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-an-enterprise-team). - - -### copilot/usage-metrics-for-enterprise-team - -Get a summary of Copilot usage for an enterprise team - -Using the `call` method: -```php -$client->call('LIST /enterprises/{enterprise}/team/{team_slug}/copilot/usage', [ - 'enterprise' => 'generated', - 'team_slug' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForEnterpriseTeamListing( enterprise: '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-an-enterprise-team). - - ### activity/list-public-events List public events diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index d3a44a8bc41..202783b73ce 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "569ed36cc004e0f3ecba0e072fcfa984", + "specHash": "758801dbed7c532f009e5f428e0454a9", "generatedFiles": { "files": [ { @@ -176,7 +176,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSecretScanningAlert.php", - "hash": "386b37888cd98a3d5b7c662a13f4791f" + "hash": "3618e654d47b21ad2c077b808a4049ed" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actor.php", @@ -536,7 +536,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrgRulesetConditions.php", - "hash": "7874695b87ff862f081d0b2acaea5799" + "hash": "ce69b64f8610fd50aedebcc6cc108cb3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleCreation.php", @@ -564,7 +564,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRulePullRequest.php", - "hash": "1150493657fe5333732907fa70a08312" + "hash": "562f2a190046143efde2f28d40eb9914" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsStatusCheckConfiguration.php", @@ -600,11 +600,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRule.php", - "hash": "27db5ee40bc66c7b5f0beb5b27918e39" + "hash": "9c73a335a51f701a767f89a6769d7430" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php", - "hash": "0a99380d26f2cfe51a0446a6c0793588" + "hash": "f6329326b12a479c6b8b1f60971d35ee" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsBillingUsage.php", @@ -668,7 +668,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RateLimitOverview.php", - "hash": "69a732e6e429ef17373dd5a18997a48e" + "hash": "70d4c1aa34acb37465d28b17edbf181f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WorkflowUsage.php", @@ -1328,7 +1328,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlert.php", - "hash": "348589b94872ff7644e761e8f06af89f" + "hash": "a42a1cee5991db08c5e89ae66fc5ebd0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertResolutionComment.php", @@ -2380,11 +2380,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertCreated.php", - "hash": "43c26624427251630964c804be9e6f56" + "hash": "2100fd4f1f0f7dea13dd4dfddb9a37c3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertLocationCreated.php", - "hash": "40852605b8612314f1f1fee1a1fdfe6e" + "hash": "0b75f023e898128677d16775d41233e1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertLocationCreatedFormEncoded.php", @@ -2392,11 +2392,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertReopened.php", - "hash": "2997a7cef6ddb159c1ccf72ad8163295" + "hash": "6cc437b7eb6d1d5aba7b3f1e2d6bc7a1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertResolved.php", - "hash": "18e4a8365529d37aa687fdb7d77b4720" + "hash": "c66d5641e16ead2f4779a00d7b0005fc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAdvisoryPublished.php", @@ -2712,7 +2712,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRulePullRequest\/Parameters.php", - "hash": "beec9fd324172757c42e3747d5ff5677" + "hash": "8833ef89cc00c400f70f8b868ddfb82d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleRequiredStatusChecks\/Parameters.php", @@ -2740,7 +2740,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RateLimitOverview\/Resources.php", - "hash": "c46bd80fa00667cbb4579a1525a44f9b" + "hash": "b2c107b58b74ea7e22e1a208d911a248" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WorkflowUsage\/Billable.php", @@ -4612,11 +4612,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "579145321d1db65b73c62a4629aad3ac" + "hash": "2b23bddd41bc0c58a13002b6e9a53410" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "b2d859e3a7310f504ce9d8cfeedc14fb" + "hash": "aec7a94f822e30fc34ead62899337e71" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php", @@ -5320,11 +5320,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "1b2925882dd494d9305360d8a0b241ad" + "hash": "31791c6cf489c42858e9909052da1a33" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "3bfd67ad49b788f7b2fd269434e19ff3" + "hash": "dc186bf909116248cc4ebea8c90c641b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php", @@ -5500,15 +5500,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/ClientInterface.php", - "hash": "bb46ce3df1314091f27ac2dff6ce2a4d" + "hash": "def992bdbf4f5d389e831bb60a665604" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Client.php", - "hash": "d8b104f11b63fe2bfecdb0f65584a622" + "hash": "5b9a619451a14adbc44b89889471048a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/OperationsInterface.php", - "hash": "cb31358967b08f13bf24415e07490408" + "hash": "943cd2c2c11c0082f266a7b5edc0fac4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Meta.php", @@ -5560,7 +5560,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "d50589878cf63e2f0075fcf60232384d" + "hash": "90c1d602b0a3eaf126a21d0fb7acd48e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php", @@ -5644,7 +5644,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operations.php", - "hash": "6e24d12bac2534d4edcf8108e664ca82" + "hash": "cc78e8701d977bbc8772da9354008c97" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/WebHooks.php", @@ -11576,7 +11576,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleDetailed.php", - "hash": "8720782d7815f87ed495b3dc7feda1f0" + "hash": "2ddf01f931848dc8dae3093027c68aa4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotSeatBreakdown.php", @@ -11612,7 +11612,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Copilot.php", - "hash": "563300a1451865b6fcf3e3dcf679b0e9" + "hash": "5386ba4f053f8b06addfd3e116f8f239" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CheckAutomatedSecurityFixes.php", @@ -11636,7 +11636,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertWebhook.php", - "hash": "f9f8eb773139be21112db032ab451a54" + "hash": "4bae16954c4b81406de794a859fc12e1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet649F32EB\/TietC13659D6\/Tiet0B408A31\/TietF85C8E0E.php", @@ -11696,15 +11696,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php", - "hash": "0157a807fa0bc79b6e81eeac9144e665" + "hash": "ea2c374d685fb7257bdd681c95776d3c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php", - "hash": "00072fbb0b45e7a3169dc2501a32668b" + "hash": "c5537b2f4f2e0135eed5b320e23119d1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php", - "hash": "85757719314c8d52389e5bcda8aedfb3" + "hash": "ffe55513dbdfaada57c5d0669d58137d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewApproved\/WorkflowRun\/Actor.php", @@ -11936,7 +11936,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes.php", - "hash": "189095656fdb3ccad9913848a3fcfc53" + "hash": "7dfaeeec8ad984afbaad64bfc67dcac6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Conditions.php", @@ -11964,11 +11964,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules.php", - "hash": "f4761308db669132281332d3f4b8cc87" + "hash": "b9405b0d8c6659cf3377653e7d27ac87" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated.php", - "hash": "f4e1ad02080f231e08a48f1b9296e951" + "hash": "9caf3ffb306bf0a4dd1f19bb1f460ca8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Changes.php", @@ -24416,7 +24416,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Copilot.php", - "hash": "ecf745142ae57eef3eefcb60dbd25986" + "hash": "8870c549432ff6bf472984f40ad36d03" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Pulls.php", @@ -24620,7 +24620,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Issues.php", - "hash": "aa33b1f8d2fd0f5eee6c0af5120886b8" + "hash": "83278779a8c70284b1225d30d5ab3d8b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Migrations.php", @@ -24632,11 +24632,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Packages.php", - "hash": "c1e365780b7caff87f52fba60b0d3d38" + "hash": "4ab93017e3894ec5748c61024d8a46d7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "f5ea065b264c97d6797480a75792ec1a" + "hash": "f96eff0ce1b57f94ce916cf82caf94ff" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -24664,7 +24664,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Pulls.php", - "hash": "9351b184edbadf5a3e74cf6bbbd2691e" + "hash": "4d5b0ded5e8b8499670796a1044ee65e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Dependabot.php", @@ -24672,7 +24672,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Reactions.php", - "hash": "205b5fc6cc89470698b5f79a6c551928" + "hash": "0fefe878063892df9627b11efe4ff2c3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Checks.php", @@ -24772,7 +24772,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Orgs.php", - "hash": "f216337da6ea505b2938bd94df3bda5c" + "hash": "b7064f19fd6b2132fea4c2076dc726d0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Codespaces.php", @@ -24852,15 +24852,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "1ce432fd322550bce04d7db17e97a08e" + "hash": "2ce20ded007385c2c29e4b1324a69efa" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "2efc037dceec2d934880567dac3d5fdb" + "hash": "962ecbf39f794f3b916ab75b7349566f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "b1ab36693fa5c4c60f402c9e0349b1fd" + "hash": "bbb5119b3640a727f82f3492d785c057" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -24956,7 +24956,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "123f6a936ba8096442dac832830411c2" + "hash": "7516af6b41f8a9d3b475684f306347be" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", @@ -24964,7 +24964,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "81326c9e0e34933f9df6d7e397ac8782" + "hash": "427b3e5f3a3a5b1be5ab000cba3c001c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -25028,7 +25028,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Six.php", - "hash": "9f3dc75023548d3071b5b9a37ecfcf6b" + "hash": "005f520b7747dbc03aca2290b99d7037" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Eight.php", @@ -25056,11 +25056,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Routers.php", - "hash": "a473ff55f9954aa8ec0bf96182a09254" + "hash": "928b9c47545e98623e0e2fef81f974ea" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operators.php", - "hash": "6e90b7a113f2db9a28235884041f9b3c" + "hash": "8b77d9ab4fd3b48f8ca6922e34434bef" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php", @@ -25708,7 +25708,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/RateLimit.php", - "hash": "aa1871adaca19d3b5a530bfcbef259f1" + "hash": "895c81243fb8bae67e82d37c3702aa73" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo.php", @@ -26576,7 +26576,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/Alerts\/AlertNumber.php", - "hash": "cfe07a6012b5e29f1e93599e174a92ec" + "hash": "816594a45f59467d1c0c1447df669a32" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/Alerts\/AlertNumber\/Locations.php", @@ -27052,7 +27052,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "83972c993a5555d60bc5d5fd44ecdc4b" + "hash": "bbe3a818a57a0e6c4cb35058dd7c7a58" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php", @@ -27436,15 +27436,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/CreateOrUpdateCustomProperty.php", - "hash": "583dccbefcca7c09176c13b3e5b9ac4c" + "hash": "cea4a53b3f730d9ba50f9a260f334e7d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/CreateOrUpdateCustomProperty.php", - "hash": "0014f81ebf2c18215cdff0f91368e995" + "hash": "e503ca6aa384e7f5366d52af6a340c75" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/CreateOrUpdateCustomPropertyTest.php", - "hash": "0e4024b2712575425cb135e139dc4c77" + "hash": "4fd9c79e179c8b09b623c98ed145d071" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/RemoveCustomProperty.php", @@ -27518,10 +27518,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/CreateOrUpdateCustomProperties\/Request\/ApplicationJson.php", "hash": "a356ad5dc76d7a79fe57d9012328096c" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/CreateOrUpdateCustomProperty\/Request\/ApplicationJson.php", - "hash": "0e9216cc4ebcd6496c7a61917240f35a" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/CreateOrUpdateCustomPropertiesValuesForRepos\/Request\/ApplicationJson.php", "hash": "cce8e2f9af4fd6904bf10750eebbedff" @@ -27636,11 +27632,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "526aac10512dc0d92689f985b41922b4" + "hash": "5ef44da46879f81f567a2e5f83aeba94" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "e92ed3755800eb5eccdcb78430551361" + "hash": "5cb480b9e80a6495a655321cbaa7d118" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -28164,11 +28160,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlert.php", - "hash": "c2568564ede71126cad1740b3f0bebc0" + "hash": "1f1611075957743643b3283758b04276" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlertLocation.php", - "hash": "9e856f413319efb8355beee2a0904e16" + "hash": "f3d9acc880000c46bf798260872040e2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecurityAdvisory.php", @@ -28460,7 +28456,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertValidated.php", - "hash": "e8d1522701abf91943c343ff988121f3" + "hash": "4c71a50892ebdab759ae0fce7ad7351e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Pages\/Deployments.php", @@ -28618,30 +28614,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Vulnerability\/Package.php", "hash": "d94656843729ac738d0d39b3c9c434c4" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterprise.php", - "hash": "dfb447789005c762db8a8ddb261b9a96" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForEnterprise.php", - "hash": "e69bffca03e266223fe2a3d81be1bdc9" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTest.php", - "hash": "ef1c67a63845ca9d70381448648d1a5b" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseListing.php", - "hash": "cd990e861e6d7337dd55241350b461a0" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForEnterpriseListing.php", - "hash": "dbbc59f648d9d78f09d7f98d677ab076" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseListingTest.php", - "hash": "6c677bfaa0523fc17cc6add5b30aa09f" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForOrg.php", "hash": "5bca15d0e2a35430dd664b5782752716" @@ -28676,11 +28648,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Copilot.php", - "hash": "93e6fb8747f9710c81901b8efd39acc9" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Copilot\/Usage.php", - "hash": "363674f9db1dacf1fdd37e37590494fd" + "hash": "e546bd03456028ce830f55778d2051f1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Usage.php", @@ -29458,26 +29426,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/WebhookProjectsV2ItemEdited\/Changes\/Zero\/FieldValue\/To.php", "hash": "090374ccd4315dad0c1a6ea7e9b8f5c4" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/ListCopilotSeatsForEnterprise.php", - "hash": "71eafae786f55045a994b68e7acc53b3" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/ListCopilotSeatsForEnterprise.php", - "hash": "9e8394f69b7788f6ffd35f0e05c0ed28" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/ListCopilotSeatsForEnterpriseTest.php", - "hash": "ec7f077cfb6b77e8812f2dcb62bb6c2f" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Copilot\/ListCopilotSeatsForEnterprise\/Response\/ApplicationJson\/Ok.php", - "hash": "20488bcbdae77f121b253e3844da7f05" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Copilot\/Billing\/Seats.php", - "hash": "d610fe0c54fccfb3da93fb8f88d2c361" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeSecurity\/GetConfigurationsForOrg.php", "hash": "2f2ec172233529eff5863ebd26a4f6ee" @@ -29778,33 +29726,25 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SigstoreBundle0\/DsseEnvelope\/Signatures.php", "hash": "6b264fe3ac697645ae5434d145cfe712" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet8EA83230\/TietFF947D7F\/Tiet4FFBD303\/TietF22B5455.php", - "hash": "998b8ba60e8c99cd36b41f5bc7376038" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/ListAttestations\/Response\/ApplicationJson\/Ok.php", - "hash": "5f7da37ffbf62821edda2bac7daefd40" + "hash": "c58c101c4d47b4e6669bf6965865ea35" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/ListAttestations\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "a6b1d91d7da8e7b2d9dbf490372a21b1" + "hash": "cbeff9141c3eee49a78695a55a02b686" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Orgs\/ListAttestations\/Response\/ApplicationJson\/Ok.php", - "hash": "857281be38a4a48a8c9e91be56249880" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet78CFC607\/Tiet96B6C16A\/TietC35E0421\/TietD975B03C.php", - "hash": "a018b39992f25e1b158d77e21262b883" + "hash": "1b7fba4ebc7c7f4fc853838e977a6045" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/ListAttestations\/Response\/ApplicationJson\/Ok\/Application\/Json\/Attestations.php", - "hash": "893847763a5d9a01a4e850cdab416854" + "hash": "41e1c733956da06bc3517753e8f09509" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Orgs\/ListAttestations\/Response\/ApplicationJson\/Ok\/Attestations.php", - "hash": "1b3035a79f88fc1e191ff81e974ac6fa" + "hash": "94d4fa2e93f29102d98a9efad2c0d809" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet0B48256E\/TietD8F54C57\/TietEDE22EEF\/TietAE2E03DC.php", @@ -29860,11 +29800,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Users\/ListAttestations\/Response\/ApplicationJson\/Ok.php", - "hash": "e1bff1c07651dc8f653641071f8ff391" + "hash": "3d23ad45efe43c020a108af573806347" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Users\/ListAttestations\/Response\/ApplicationJson\/Ok\/Attestations.php", - "hash": "a125c1a6769f58197dbbcf00e7277f4f" + "hash": "eb68860265709809eb74f254c20534d8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Attestations\/SubjectDigest.php", @@ -30010,34 +29950,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Eighteen\/Parameters.php", "hash": "e1f28caa9eb8cadf96ff706a4ea2b302" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTeam.php", - "hash": "247600d098773436d2eae0d452697e68" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForEnterpriseTeam.php", - "hash": "77fd8338403e4faad13b5ac00799a5a6" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTeamTest.php", - "hash": "acfa68749f56be7d8c0a9849d0d4a3bc" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTeamListing.php", - "hash": "93d052d3e6f94d203e9c83af555189fc" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForEnterpriseTeamListing.php", - "hash": "80d1e8bd251a0e5fb7eedfbe1bc3c780" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTeamListingTest.php", - "hash": "3eba1d23274dd9d7c7ef7ff8e3d04268" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Team\/TeamSlug\/Copilot\/Usage.php", - "hash": "257206e4a06fa1e4a4e5d1ba8e98ec1e" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForTeam.php", "hash": "113b3a54860b29bc12312d2cc4af45ce" @@ -30452,7 +30364,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertPubliclyLeaked.php", - "hash": "3f71effbea1adf3ff8e5e0acdd960c0b" + "hash": "3c90c335c5293ec8cbd7a3a4ae220bef" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet840A0FDF\/Tiet2788886F\/Tiet3E288C76\/Tiet836AAE9A.php", @@ -30614,54 +30526,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietF9118D54\/Tiet0348F141\/Tiet9D635D6C\/TietE7315EF1.php", "hash": "3e4fdc80247873aa80d031284a7a4885" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/CopilotMetricsForEnterprise.php", - "hash": "25e6cec4db8a9aa99bcb1bee247b4055" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/CopilotMetricsForEnterprise.php", - "hash": "ec49ebea2f9735ac8b509bb49be98fba" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/CopilotMetricsForEnterpriseTest.php", - "hash": "6e0d95ca72aa7908ba97c848f7e5f211" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/CopilotMetricsForEnterpriseListing.php", - "hash": "ad390b48c79a4e79465dace9b2f1fe04" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/CopilotMetricsForEnterpriseListing.php", - "hash": "c10dd90716f736a5c0e90f665ae9e43c" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/CopilotMetricsForEnterpriseListingTest.php", - "hash": "6c5b9e4415fdca6fc99f65c4e6772c46" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/CopilotMetricsForEnterpriseTeam.php", - "hash": "3b265ba8cc3809c501233168d460be90" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/CopilotMetricsForEnterpriseTeam.php", - "hash": "23dd121269a9f8f0025d70a3322deb04" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/CopilotMetricsForEnterpriseTeamTest.php", - "hash": "917d8afd41598239d6091db27595c530" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/CopilotMetricsForEnterpriseTeamListing.php", - "hash": "ecc72771936b45f2351fca926685e012" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/CopilotMetricsForEnterpriseTeamListing.php", - "hash": "a589e8b4b8a468806859f357e221c0fe" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/CopilotMetricsForEnterpriseTeamListingTest.php", - "hash": "bca563c479577cd8a19f243a795a682d" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/CopilotMetricsForOrganization.php", "hash": "486cb5cf0bd8f2c1d58260fffa38b41c" @@ -30766,14 +30630,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotDotcomPullRequests\/Repositories\/Models.php", "hash": "30dd05590298e7bb152f9451d8801fd8" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Copilot\/Metrics.php", - "hash": "713ba6790893820994349ed247cb6070" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Team\/TeamSlug\/Copilot\/Metrics.php", - "hash": "d17550790fe1693a09851f76966e6fd6" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Metrics.php", "hash": "c1d4dd29d1ecffb6793b50fa1dfb2fbe" @@ -30964,11 +30820,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/ApiInsights.php", - "hash": "4953c555cc53b197cc4350b07178f36d" + "hash": "fd673f8901b401b29cb2e99cbd190c19" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/ApiInsights.php", - "hash": "161e18259cd773755f3f35ea4ec76f89" + "hash": "c8435e070baecb1970ff3447989771e0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Insights\/Api\/SummaryStats.php", @@ -31221,6 +31077,18 @@ { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfiguration\/CodeScanningDefaultSetupOptions.php", "hash": "878f417b0d2b7dfad71bf07e4bd5e095" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CustomPropertySetPayload.php", + "hash": "6e651111d80718a6372d4e88de3a8094" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9EC65F6E\/Tiet54735A02\/Tiet6044DE21\/Tiet16F5868C.php", + "hash": "e7a6a6a0c2c1df034b5a9bdb84cc4ad9" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietE2314769\/Tiet2BBD4166\/Tiet71BBCC18\/TietF732B93A.php", + "hash": "7f4dd2de7fbb297710571fe54d3dd79b" } ] }, diff --git a/clients/GitHub/src/Client.php b/clients/GitHub/src/Client.php index df509cbef09..85d2f736c2d 100644 --- a/clients/GitHub/src/Client.php +++ b/clients/GitHub/src/Client.php @@ -27,7 +27,7 @@ public function __construct(AuthenticationInterface $authentication, Browser $br } // phpcs:disable - public function call(string $call, array $params = []): \ApiClients\Client\GitHub\Schema\Root|iterable|\ApiClients\Client\GitHub\Schema\GlobalAdvisory|\ApiClients\Client\GitHub\Schema\Integration|\ApiClients\Client\GitHub\Schema\WebhookConfig|\ApiClients\Client\GitHub\Schema\HookDelivery|\ApiClients\Client\GitHub\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHub\Schema\Installation|\ApiClients\Client\GitHub\Schema\InstallationToken|\ApiClients\Client\GitHub\Schema\Authorization|\ApiClients\Client\GitHub\Schema\ClassroomAssignment|\ApiClients\Client\GitHub\Schema\Classroom|\ApiClients\Client\GitHub\Schema\CodeOfConduct|\ApiClients\Client\GitHub\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Feed|\ApiClients\Client\GitHub\Schema\GistSimple|\ApiClients\Client\GitHub\Schema\GistComment|\ApiClients\Client\GitHub\Schema\BaseGist|\ApiClients\Client\GitHub\Schema\GitignoreTemplate|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\License|string|\ApiClients\Client\GitHub\Schema\MarketplacePurchase|\ApiClients\Client\GitHub\Schema\ApiOverview|\ApiClients\Client\GitHub\Schema\BasicError|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Thread|\ApiClients\Client\GitHub\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHub\Schema\BillingUsageReport|\ApiClients\Client\GitHub\Schema\OrganizationFull|\ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OidcCustomSub|\ApiClients\Client\GitHub\Schema\EmptyObject|\ApiClients\Client\GitHub\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\SelectedActions|\ApiClients\Client\GitHub\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RunnerGroupsOrg|\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\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\AuthenticationToken|\ApiClients\Client\GitHub\Schema\Runner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\OrgHook|\ApiClients\Client\GitHub\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\InteractionLimitResponse|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\OrganizationInvitation|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Codespace|\ApiClients\Client\GitHub\Schema\CopilotSeatDetails|\ApiClients\Client\GitHub\Schema\OrgMembership|\ApiClients\Client\GitHub\Schema\Migration|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Package|\ApiClients\Client\GitHub\Schema\PackageVersion|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Project|\ApiClients\Client\GitHub\Schema\CustomProperty|\ApiClients\Client\GitHub\Schema\FullRepository|\ApiClients\Client\GitHub\Schema\RepositoryRuleset|\ApiClients\Client\GitHub\Schema\RuleSuite|\ApiClients\Client\GitHub\Schema\ActionsBillingUsage|\ApiClients\Client\GitHub\Schema\PackagesBillingUsage|\ApiClients\Client\GitHub\Schema\CombinedBillingUsage|\ApiClients\Client\GitHub\Schema\TeamFull|\ApiClients\Client\GitHub\Schema\TeamDiscussion|\ApiClients\Client\GitHub\Schema\TeamDiscussionComment|\ApiClients\Client\GitHub\Schema\Reaction|\ApiClients\Client\GitHub\Schema\TeamMembership|\ApiClients\Client\GitHub\Schema\TeamProject|\ApiClients\Client\GitHub\Schema\TeamRepository|\ApiClients\Client\GitHub\Schema\ProjectCard|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectColumn|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\RateLimitOverview|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Artifact|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHub\Schema\ActionsCacheList|\ApiClients\Client\GitHub\Schema\Job|\ApiClients\Client\GitHub\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\WorkflowRun|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Workflow|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowUsage|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Autolink|\ApiClients\Client\GitHub\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHub\Schema\BranchWithProtection|\ApiClients\Client\GitHub\Schema\BranchProtection|\ApiClients\Client\GitHub\Schema\ProtectedBranch|\ApiClients\Client\GitHub\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHub\Schema\StatusCheckPolicy|\ApiClients\Client\GitHub\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHub\Schema\CheckRun|\ApiClients\Client\GitHub\Schema\CheckSuite|\ApiClients\Client\GitHub\Schema\CheckSuitePreference|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeScanningAlert|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHub\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHub\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHub\Schema\CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHub\Schema\RepositoryInvitation|\ApiClients\Client\GitHub\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\CommitComment|\ApiClients\Client\GitHub\Schema\Commit|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CombinedCommitStatus|\ApiClients\Client\GitHub\Schema\CommunityProfile|\ApiClients\Client\GitHub\Schema\CommitComparison|\ApiClients\Client\GitHub\Schema\ContentDirectory|\ApiClients\Client\GitHub\Schema\ContentFile|\ApiClients\Client\GitHub\Schema\ContentSymlink|\ApiClients\Client\GitHub\Schema\ContentSubmodule|\ApiClients\Client\GitHub\Schema\FileCommit|\ApiClients\Client\GitHub\Schema\DependabotAlert|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotSecret|\ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\DeploymentStatus|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Environment|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\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|\ApiClients\Client\GitHub\Schema\ShortBlob|\ApiClients\Client\GitHub\Schema\Blob|\ApiClients\Client\GitHub\Schema\GitCommit|\ApiClients\Client\GitHub\Schema\GitRef|\ApiClients\Client\GitHub\Schema\GitTag|\ApiClients\Client\GitHub\Schema\GitTree|\ApiClients\Client\GitHub\Schema\Hook|\ApiClients\Client\GitHub\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Import|\ApiClients\Client\GitHub\Schema\PorterAuthor|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Issue|\ApiClients\Client\GitHub\Schema\IssueComment|\ApiClients\Client\GitHub\Schema\IssueEvent|\ApiClients\Client\GitHub\Schema\DeployKey|\ApiClients\Client\GitHub\Schema\Label|\ApiClients\Client\GitHub\Schema\Language|\ApiClients\Client\GitHub\Schema\LicenseContent|\ApiClients\Client\GitHub\Schema\MergedUpstream|\ApiClients\Client\GitHub\Schema\Milestone|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Page|\ApiClients\Client\GitHub\Schema\PageBuildStatus|\ApiClients\Client\GitHub\Schema\PageBuild|\ApiClients\Client\GitHub\Schema\PageDeployment|\ApiClients\Client\GitHub\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHub\Schema\PagesHealthCheck|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PullRequest|\ApiClients\Client\GitHub\Schema\PullRequestReviewComment|\ApiClients\Client\GitHub\Schema\PullRequestMergeResult|\ApiClients\Client\GitHub\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHub\Schema\PullRequestSimple|\ApiClients\Client\GitHub\Schema\PullRequestReview|\ApiClients\Client\GitHub\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Release|\ApiClients\Client\GitHub\Schema\ReleaseAsset|\ApiClients\Client\GitHub\Schema\ReleaseNotesContent|\ApiClients\Client\GitHub\Schema\SecretScanningAlert|\ApiClients\Client\GitHub\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHub\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHub\Schema\RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\SimpleUser|\ApiClients\Client\GitHub\Schema\Stargazer|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ParticipationStats|\ApiClients\Client\GitHub\Schema\Status|\ApiClients\Client\GitHub\Schema\RepositorySubscription|\ApiClients\Client\GitHub\Schema\TagProtection|\ApiClients\Client\GitHub\Schema\Topic|\ApiClients\Client\GitHub\Schema\CloneTraffic|\ApiClients\Client\GitHub\Schema\ViewTraffic|\ApiClients\Client\GitHub\Schema\MinimalRepository|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PrivateUser|\ApiClients\Client\GitHub\Schema\PublicUser|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceExportDetails|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHub\Schema\GpgKey|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Key|\ApiClients\Client\GitHub\Schema\SshSigningKey|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Hovercard|\ApiClients\Client\GitHub\Schema\StarredRepository|\ApiClients\Client\GitHub\Schema\Repository + public function call(string $call, array $params = []): \ApiClients\Client\GitHub\Schema\Root|iterable|\ApiClients\Client\GitHub\Schema\GlobalAdvisory|\ApiClients\Client\GitHub\Schema\Integration|\ApiClients\Client\GitHub\Schema\WebhookConfig|\ApiClients\Client\GitHub\Schema\HookDelivery|\ApiClients\Client\GitHub\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHub\Schema\Installation|\ApiClients\Client\GitHub\Schema\InstallationToken|\ApiClients\Client\GitHub\Schema\Authorization|\ApiClients\Client\GitHub\Schema\ClassroomAssignment|\ApiClients\Client\GitHub\Schema\Classroom|\ApiClients\Client\GitHub\Schema\CodeOfConduct|\ApiClients\Client\GitHub\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Feed|\ApiClients\Client\GitHub\Schema\GistSimple|\ApiClients\Client\GitHub\Schema\GistComment|\ApiClients\Client\GitHub\Schema\BaseGist|\ApiClients\Client\GitHub\Schema\GitignoreTemplate|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\License|string|\ApiClients\Client\GitHub\Schema\MarketplacePurchase|\ApiClients\Client\GitHub\Schema\ApiOverview|\ApiClients\Client\GitHub\Schema\BasicError|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Thread|\ApiClients\Client\GitHub\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHub\Schema\BillingUsageReport|\ApiClients\Client\GitHub\Schema\OrganizationFull|\ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OidcCustomSub|\ApiClients\Client\GitHub\Schema\EmptyObject|\ApiClients\Client\GitHub\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\SelectedActions|\ApiClients\Client\GitHub\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RunnerGroupsOrg|\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\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\AuthenticationToken|\ApiClients\Client\GitHub\Schema\Runner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\OrgHook|\ApiClients\Client\GitHub\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\InteractionLimitResponse|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\OrganizationInvitation|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Codespace|\ApiClients\Client\GitHub\Schema\CopilotSeatDetails|\ApiClients\Client\GitHub\Schema\OrgMembership|\ApiClients\Client\GitHub\Schema\Migration|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Package|\ApiClients\Client\GitHub\Schema\PackageVersion|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Project|\ApiClients\Client\GitHub\Schema\CustomProperty|\ApiClients\Client\GitHub\Schema\FullRepository|\ApiClients\Client\GitHub\Schema\RepositoryRuleset|\ApiClients\Client\GitHub\Schema\RuleSuite|\ApiClients\Client\GitHub\Schema\ActionsBillingUsage|\ApiClients\Client\GitHub\Schema\PackagesBillingUsage|\ApiClients\Client\GitHub\Schema\CombinedBillingUsage|\ApiClients\Client\GitHub\Schema\TeamFull|\ApiClients\Client\GitHub\Schema\TeamDiscussion|\ApiClients\Client\GitHub\Schema\TeamDiscussionComment|\ApiClients\Client\GitHub\Schema\Reaction|\ApiClients\Client\GitHub\Schema\TeamMembership|\ApiClients\Client\GitHub\Schema\TeamProject|\ApiClients\Client\GitHub\Schema\TeamRepository|\ApiClients\Client\GitHub\Schema\ProjectCard|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectColumn|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\RateLimitOverview|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Artifact|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHub\Schema\ActionsCacheList|\ApiClients\Client\GitHub\Schema\Job|\ApiClients\Client\GitHub\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\WorkflowRun|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Workflow|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowUsage|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Autolink|\ApiClients\Client\GitHub\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHub\Schema\BranchWithProtection|\ApiClients\Client\GitHub\Schema\BranchProtection|\ApiClients\Client\GitHub\Schema\ProtectedBranch|\ApiClients\Client\GitHub\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHub\Schema\StatusCheckPolicy|\ApiClients\Client\GitHub\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHub\Schema\CheckRun|\ApiClients\Client\GitHub\Schema\CheckSuite|\ApiClients\Client\GitHub\Schema\CheckSuitePreference|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeScanningAlert|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHub\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHub\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHub\Schema\CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHub\Schema\RepositoryInvitation|\ApiClients\Client\GitHub\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\CommitComment|\ApiClients\Client\GitHub\Schema\Commit|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CombinedCommitStatus|\ApiClients\Client\GitHub\Schema\CommunityProfile|\ApiClients\Client\GitHub\Schema\CommitComparison|\ApiClients\Client\GitHub\Schema\ContentDirectory|\ApiClients\Client\GitHub\Schema\ContentFile|\ApiClients\Client\GitHub\Schema\ContentSymlink|\ApiClients\Client\GitHub\Schema\ContentSubmodule|\ApiClients\Client\GitHub\Schema\FileCommit|\ApiClients\Client\GitHub\Schema\DependabotAlert|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotSecret|\ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\DeploymentStatus|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Environment|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\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|\ApiClients\Client\GitHub\Schema\ShortBlob|\ApiClients\Client\GitHub\Schema\Blob|\ApiClients\Client\GitHub\Schema\GitCommit|\ApiClients\Client\GitHub\Schema\GitRef|\ApiClients\Client\GitHub\Schema\GitTag|\ApiClients\Client\GitHub\Schema\GitTree|\ApiClients\Client\GitHub\Schema\Hook|\ApiClients\Client\GitHub\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Import|\ApiClients\Client\GitHub\Schema\PorterAuthor|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Issue|\ApiClients\Client\GitHub\Schema\IssueComment|\ApiClients\Client\GitHub\Schema\IssueEvent|\ApiClients\Client\GitHub\Schema\DeployKey|\ApiClients\Client\GitHub\Schema\Label|\ApiClients\Client\GitHub\Schema\Language|\ApiClients\Client\GitHub\Schema\LicenseContent|\ApiClients\Client\GitHub\Schema\MergedUpstream|\ApiClients\Client\GitHub\Schema\Milestone|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Page|\ApiClients\Client\GitHub\Schema\PageBuildStatus|\ApiClients\Client\GitHub\Schema\PageBuild|\ApiClients\Client\GitHub\Schema\PageDeployment|\ApiClients\Client\GitHub\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHub\Schema\PagesHealthCheck|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PullRequest|\ApiClients\Client\GitHub\Schema\PullRequestReviewComment|\ApiClients\Client\GitHub\Schema\PullRequestMergeResult|\ApiClients\Client\GitHub\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHub\Schema\PullRequestSimple|\ApiClients\Client\GitHub\Schema\PullRequestReview|\ApiClients\Client\GitHub\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Release|\ApiClients\Client\GitHub\Schema\ReleaseAsset|\ApiClients\Client\GitHub\Schema\ReleaseNotesContent|\ApiClients\Client\GitHub\Schema\SecretScanningAlert|\ApiClients\Client\GitHub\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHub\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHub\Schema\RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\SimpleUser|\ApiClients\Client\GitHub\Schema\Stargazer|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ParticipationStats|\ApiClients\Client\GitHub\Schema\Status|\ApiClients\Client\GitHub\Schema\RepositorySubscription|\ApiClients\Client\GitHub\Schema\TagProtection|\ApiClients\Client\GitHub\Schema\Topic|\ApiClients\Client\GitHub\Schema\CloneTraffic|\ApiClients\Client\GitHub\Schema\ViewTraffic|\ApiClients\Client\GitHub\Schema\MinimalRepository|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PrivateUser|\ApiClients\Client\GitHub\Schema\PublicUser|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceExportDetails|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHub\Schema\GpgKey|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Key|\ApiClients\Client\GitHub\Schema\SshSigningKey|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Hovercard|\ApiClients\Client\GitHub\Schema\StarredRepository|\ApiClients\Client\GitHub\Schema\Repository { [$method, $path] = explode(' ', $call); $pathChunks = explode('/', $path); @@ -231,12 +231,6 @@ public function call(string $call, array $params = []): \ApiClients\Client\GitHu } return $this->router[Internal\Router\List\Five::class]->call($call, $params, $pathChunks); - } elseif ($pathChunksCount === 7) { - if (\array_key_exists(Internal\Router\List\Seven::class, $this->router) === false) { - $this->router[Internal\Router\List\Seven::class] = new Internal\Router\List\Seven(routers: $this->routers); - } - - return $this->router[Internal\Router\List\Seven::class]->call($call, $params, $pathChunks); } elseif ($pathChunksCount === 6) { if (\array_key_exists(Internal\Router\List\Six::class, $this->router) === false) { $this->router[Internal\Router\List\Six::class] = new Internal\Router\List\Six(routers: $this->routers); @@ -249,6 +243,12 @@ public function call(string $call, array $params = []): \ApiClients\Client\GitHu } return $this->router[Internal\Router\List\Eight::class]->call($call, $params, $pathChunks); + } elseif ($pathChunksCount === 7) { + if (\array_key_exists(Internal\Router\List\Seven::class, $this->router) === false) { + $this->router[Internal\Router\List\Seven::class] = new Internal\Router\List\Seven(routers: $this->routers); + } + + return $this->router[Internal\Router\List\Seven::class]->call($call, $params, $pathChunks); } elseif ($pathChunksCount === 10) { if (\array_key_exists(Internal\Router\List\Ten::class, $this->router) === false) { $this->router[Internal\Router\List\Ten::class] = new Internal\Router\List\Ten(routers: $this->routers); diff --git a/clients/GitHub/src/ClientInterface.php b/clients/GitHub/src/ClientInterface.php index 66d2ff52cbf..f4b70440d21 100644 --- a/clients/GitHub/src/ClientInterface.php +++ b/clients/GitHub/src/ClientInterface.php @@ -7,7 +7,7 @@ interface ClientInterface { // phpcs:disable - public function call(string $call, array $params = []): \ApiClients\Client\GitHub\Schema\Root|iterable|\ApiClients\Client\GitHub\Schema\GlobalAdvisory|\ApiClients\Client\GitHub\Schema\Integration|\ApiClients\Client\GitHub\Schema\WebhookConfig|\ApiClients\Client\GitHub\Schema\HookDelivery|\ApiClients\Client\GitHub\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHub\Schema\Installation|\ApiClients\Client\GitHub\Schema\InstallationToken|\ApiClients\Client\GitHub\Schema\Authorization|\ApiClients\Client\GitHub\Schema\ClassroomAssignment|\ApiClients\Client\GitHub\Schema\Classroom|\ApiClients\Client\GitHub\Schema\CodeOfConduct|\ApiClients\Client\GitHub\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Feed|\ApiClients\Client\GitHub\Schema\GistSimple|\ApiClients\Client\GitHub\Schema\GistComment|\ApiClients\Client\GitHub\Schema\BaseGist|\ApiClients\Client\GitHub\Schema\GitignoreTemplate|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\License|string|\ApiClients\Client\GitHub\Schema\MarketplacePurchase|\ApiClients\Client\GitHub\Schema\ApiOverview|\ApiClients\Client\GitHub\Schema\BasicError|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Thread|\ApiClients\Client\GitHub\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHub\Schema\BillingUsageReport|\ApiClients\Client\GitHub\Schema\OrganizationFull|\ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OidcCustomSub|\ApiClients\Client\GitHub\Schema\EmptyObject|\ApiClients\Client\GitHub\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\SelectedActions|\ApiClients\Client\GitHub\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RunnerGroupsOrg|\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\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\AuthenticationToken|\ApiClients\Client\GitHub\Schema\Runner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\OrgHook|\ApiClients\Client\GitHub\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\InteractionLimitResponse|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\OrganizationInvitation|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Codespace|\ApiClients\Client\GitHub\Schema\CopilotSeatDetails|\ApiClients\Client\GitHub\Schema\OrgMembership|\ApiClients\Client\GitHub\Schema\Migration|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Package|\ApiClients\Client\GitHub\Schema\PackageVersion|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Project|\ApiClients\Client\GitHub\Schema\CustomProperty|\ApiClients\Client\GitHub\Schema\FullRepository|\ApiClients\Client\GitHub\Schema\RepositoryRuleset|\ApiClients\Client\GitHub\Schema\RuleSuite|\ApiClients\Client\GitHub\Schema\ActionsBillingUsage|\ApiClients\Client\GitHub\Schema\PackagesBillingUsage|\ApiClients\Client\GitHub\Schema\CombinedBillingUsage|\ApiClients\Client\GitHub\Schema\TeamFull|\ApiClients\Client\GitHub\Schema\TeamDiscussion|\ApiClients\Client\GitHub\Schema\TeamDiscussionComment|\ApiClients\Client\GitHub\Schema\Reaction|\ApiClients\Client\GitHub\Schema\TeamMembership|\ApiClients\Client\GitHub\Schema\TeamProject|\ApiClients\Client\GitHub\Schema\TeamRepository|\ApiClients\Client\GitHub\Schema\ProjectCard|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectColumn|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\RateLimitOverview|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Artifact|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHub\Schema\ActionsCacheList|\ApiClients\Client\GitHub\Schema\Job|\ApiClients\Client\GitHub\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\WorkflowRun|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Workflow|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowUsage|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Autolink|\ApiClients\Client\GitHub\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHub\Schema\BranchWithProtection|\ApiClients\Client\GitHub\Schema\BranchProtection|\ApiClients\Client\GitHub\Schema\ProtectedBranch|\ApiClients\Client\GitHub\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHub\Schema\StatusCheckPolicy|\ApiClients\Client\GitHub\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHub\Schema\CheckRun|\ApiClients\Client\GitHub\Schema\CheckSuite|\ApiClients\Client\GitHub\Schema\CheckSuitePreference|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeScanningAlert|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHub\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHub\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHub\Schema\CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHub\Schema\RepositoryInvitation|\ApiClients\Client\GitHub\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\CommitComment|\ApiClients\Client\GitHub\Schema\Commit|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CombinedCommitStatus|\ApiClients\Client\GitHub\Schema\CommunityProfile|\ApiClients\Client\GitHub\Schema\CommitComparison|\ApiClients\Client\GitHub\Schema\ContentDirectory|\ApiClients\Client\GitHub\Schema\ContentFile|\ApiClients\Client\GitHub\Schema\ContentSymlink|\ApiClients\Client\GitHub\Schema\ContentSubmodule|\ApiClients\Client\GitHub\Schema\FileCommit|\ApiClients\Client\GitHub\Schema\DependabotAlert|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotSecret|\ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\DeploymentStatus|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Environment|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\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|\ApiClients\Client\GitHub\Schema\ShortBlob|\ApiClients\Client\GitHub\Schema\Blob|\ApiClients\Client\GitHub\Schema\GitCommit|\ApiClients\Client\GitHub\Schema\GitRef|\ApiClients\Client\GitHub\Schema\GitTag|\ApiClients\Client\GitHub\Schema\GitTree|\ApiClients\Client\GitHub\Schema\Hook|\ApiClients\Client\GitHub\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Import|\ApiClients\Client\GitHub\Schema\PorterAuthor|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Issue|\ApiClients\Client\GitHub\Schema\IssueComment|\ApiClients\Client\GitHub\Schema\IssueEvent|\ApiClients\Client\GitHub\Schema\DeployKey|\ApiClients\Client\GitHub\Schema\Label|\ApiClients\Client\GitHub\Schema\Language|\ApiClients\Client\GitHub\Schema\LicenseContent|\ApiClients\Client\GitHub\Schema\MergedUpstream|\ApiClients\Client\GitHub\Schema\Milestone|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Page|\ApiClients\Client\GitHub\Schema\PageBuildStatus|\ApiClients\Client\GitHub\Schema\PageBuild|\ApiClients\Client\GitHub\Schema\PageDeployment|\ApiClients\Client\GitHub\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHub\Schema\PagesHealthCheck|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PullRequest|\ApiClients\Client\GitHub\Schema\PullRequestReviewComment|\ApiClients\Client\GitHub\Schema\PullRequestMergeResult|\ApiClients\Client\GitHub\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHub\Schema\PullRequestSimple|\ApiClients\Client\GitHub\Schema\PullRequestReview|\ApiClients\Client\GitHub\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Release|\ApiClients\Client\GitHub\Schema\ReleaseAsset|\ApiClients\Client\GitHub\Schema\ReleaseNotesContent|\ApiClients\Client\GitHub\Schema\SecretScanningAlert|\ApiClients\Client\GitHub\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHub\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHub\Schema\RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\SimpleUser|\ApiClients\Client\GitHub\Schema\Stargazer|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ParticipationStats|\ApiClients\Client\GitHub\Schema\Status|\ApiClients\Client\GitHub\Schema\RepositorySubscription|\ApiClients\Client\GitHub\Schema\TagProtection|\ApiClients\Client\GitHub\Schema\Topic|\ApiClients\Client\GitHub\Schema\CloneTraffic|\ApiClients\Client\GitHub\Schema\ViewTraffic|\ApiClients\Client\GitHub\Schema\MinimalRepository|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PrivateUser|\ApiClients\Client\GitHub\Schema\PublicUser|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceExportDetails|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHub\Schema\GpgKey|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Key|\ApiClients\Client\GitHub\Schema\SshSigningKey|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Hovercard|\ApiClients\Client\GitHub\Schema\StarredRepository|\ApiClients\Client\GitHub\Schema\Repository; + public function call(string $call, array $params = []): \ApiClients\Client\GitHub\Schema\Root|iterable|\ApiClients\Client\GitHub\Schema\GlobalAdvisory|\ApiClients\Client\GitHub\Schema\Integration|\ApiClients\Client\GitHub\Schema\WebhookConfig|\ApiClients\Client\GitHub\Schema\HookDelivery|\ApiClients\Client\GitHub\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHub\Schema\Installation|\ApiClients\Client\GitHub\Schema\InstallationToken|\ApiClients\Client\GitHub\Schema\Authorization|\ApiClients\Client\GitHub\Schema\ClassroomAssignment|\ApiClients\Client\GitHub\Schema\Classroom|\ApiClients\Client\GitHub\Schema\CodeOfConduct|\ApiClients\Client\GitHub\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Feed|\ApiClients\Client\GitHub\Schema\GistSimple|\ApiClients\Client\GitHub\Schema\GistComment|\ApiClients\Client\GitHub\Schema\BaseGist|\ApiClients\Client\GitHub\Schema\GitignoreTemplate|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\License|string|\ApiClients\Client\GitHub\Schema\MarketplacePurchase|\ApiClients\Client\GitHub\Schema\ApiOverview|\ApiClients\Client\GitHub\Schema\BasicError|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Thread|\ApiClients\Client\GitHub\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHub\Schema\BillingUsageReport|\ApiClients\Client\GitHub\Schema\OrganizationFull|\ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OidcCustomSub|\ApiClients\Client\GitHub\Schema\EmptyObject|\ApiClients\Client\GitHub\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\SelectedActions|\ApiClients\Client\GitHub\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RunnerGroupsOrg|\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\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\AuthenticationToken|\ApiClients\Client\GitHub\Schema\Runner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\OrgHook|\ApiClients\Client\GitHub\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\InteractionLimitResponse|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\OrganizationInvitation|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Codespace|\ApiClients\Client\GitHub\Schema\CopilotSeatDetails|\ApiClients\Client\GitHub\Schema\OrgMembership|\ApiClients\Client\GitHub\Schema\Migration|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Package|\ApiClients\Client\GitHub\Schema\PackageVersion|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Project|\ApiClients\Client\GitHub\Schema\CustomProperty|\ApiClients\Client\GitHub\Schema\FullRepository|\ApiClients\Client\GitHub\Schema\RepositoryRuleset|\ApiClients\Client\GitHub\Schema\RuleSuite|\ApiClients\Client\GitHub\Schema\ActionsBillingUsage|\ApiClients\Client\GitHub\Schema\PackagesBillingUsage|\ApiClients\Client\GitHub\Schema\CombinedBillingUsage|\ApiClients\Client\GitHub\Schema\TeamFull|\ApiClients\Client\GitHub\Schema\TeamDiscussion|\ApiClients\Client\GitHub\Schema\TeamDiscussionComment|\ApiClients\Client\GitHub\Schema\Reaction|\ApiClients\Client\GitHub\Schema\TeamMembership|\ApiClients\Client\GitHub\Schema\TeamProject|\ApiClients\Client\GitHub\Schema\TeamRepository|\ApiClients\Client\GitHub\Schema\ProjectCard|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectColumn|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\RateLimitOverview|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Artifact|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHub\Schema\ActionsCacheList|\ApiClients\Client\GitHub\Schema\Job|\ApiClients\Client\GitHub\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\WorkflowRun|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Workflow|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowUsage|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Autolink|\ApiClients\Client\GitHub\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHub\Schema\BranchWithProtection|\ApiClients\Client\GitHub\Schema\BranchProtection|\ApiClients\Client\GitHub\Schema\ProtectedBranch|\ApiClients\Client\GitHub\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHub\Schema\StatusCheckPolicy|\ApiClients\Client\GitHub\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHub\Schema\CheckRun|\ApiClients\Client\GitHub\Schema\CheckSuite|\ApiClients\Client\GitHub\Schema\CheckSuitePreference|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeScanningAlert|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHub\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHub\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHub\Schema\CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHub\Schema\RepositoryInvitation|\ApiClients\Client\GitHub\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\CommitComment|\ApiClients\Client\GitHub\Schema\Commit|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CombinedCommitStatus|\ApiClients\Client\GitHub\Schema\CommunityProfile|\ApiClients\Client\GitHub\Schema\CommitComparison|\ApiClients\Client\GitHub\Schema\ContentDirectory|\ApiClients\Client\GitHub\Schema\ContentFile|\ApiClients\Client\GitHub\Schema\ContentSymlink|\ApiClients\Client\GitHub\Schema\ContentSubmodule|\ApiClients\Client\GitHub\Schema\FileCommit|\ApiClients\Client\GitHub\Schema\DependabotAlert|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotSecret|\ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\DeploymentStatus|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Environment|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\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|\ApiClients\Client\GitHub\Schema\ShortBlob|\ApiClients\Client\GitHub\Schema\Blob|\ApiClients\Client\GitHub\Schema\GitCommit|\ApiClients\Client\GitHub\Schema\GitRef|\ApiClients\Client\GitHub\Schema\GitTag|\ApiClients\Client\GitHub\Schema\GitTree|\ApiClients\Client\GitHub\Schema\Hook|\ApiClients\Client\GitHub\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Import|\ApiClients\Client\GitHub\Schema\PorterAuthor|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Issue|\ApiClients\Client\GitHub\Schema\IssueComment|\ApiClients\Client\GitHub\Schema\IssueEvent|\ApiClients\Client\GitHub\Schema\DeployKey|\ApiClients\Client\GitHub\Schema\Label|\ApiClients\Client\GitHub\Schema\Language|\ApiClients\Client\GitHub\Schema\LicenseContent|\ApiClients\Client\GitHub\Schema\MergedUpstream|\ApiClients\Client\GitHub\Schema\Milestone|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Page|\ApiClients\Client\GitHub\Schema\PageBuildStatus|\ApiClients\Client\GitHub\Schema\PageBuild|\ApiClients\Client\GitHub\Schema\PageDeployment|\ApiClients\Client\GitHub\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHub\Schema\PagesHealthCheck|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PullRequest|\ApiClients\Client\GitHub\Schema\PullRequestReviewComment|\ApiClients\Client\GitHub\Schema\PullRequestMergeResult|\ApiClients\Client\GitHub\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHub\Schema\PullRequestSimple|\ApiClients\Client\GitHub\Schema\PullRequestReview|\ApiClients\Client\GitHub\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Release|\ApiClients\Client\GitHub\Schema\ReleaseAsset|\ApiClients\Client\GitHub\Schema\ReleaseNotesContent|\ApiClients\Client\GitHub\Schema\SecretScanningAlert|\ApiClients\Client\GitHub\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHub\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHub\Schema\RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\SimpleUser|\ApiClients\Client\GitHub\Schema\Stargazer|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ParticipationStats|\ApiClients\Client\GitHub\Schema\Status|\ApiClients\Client\GitHub\Schema\RepositorySubscription|\ApiClients\Client\GitHub\Schema\TagProtection|\ApiClients\Client\GitHub\Schema\Topic|\ApiClients\Client\GitHub\Schema\CloneTraffic|\ApiClients\Client\GitHub\Schema\ViewTraffic|\ApiClients\Client\GitHub\Schema\MinimalRepository|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PrivateUser|\ApiClients\Client\GitHub\Schema\PublicUser|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceExportDetails|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHub\Schema\GpgKey|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Key|\ApiClients\Client\GitHub\Schema\SshSigningKey|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Hovercard|\ApiClients\Client\GitHub\Schema\StarredRepository|\ApiClients\Client\GitHub\Schema\Repository; public function operations(): OperationsInterface; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Copilot/Billing/Seats.php b/clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Copilot/Billing/Seats.php deleted file mode 100644 index 57dd4a55815..00000000000 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Copilot/Billing/Seats.php +++ /dev/null @@ -1,361 +0,0 @@ - $className - * - * @return T - * - * @template T of object - */ - public function hydrateObject(string $className, array $payload): object - { - return match ($className) { - 'ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeatsForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok($payload), - '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⚡️Operations⚡️Copilot⚡️ListCopilotSeatsForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok - { - $properties = []; - $missingFields = []; - try { - $value = $payload['total_seats'] ?? null; - - if ($value === null) { - $properties['totalSeats'] = null; - goto after_totalSeats; - } - - $properties['totalSeats'] = $value; - - after_totalSeats: - - $value = $payload['seats'] ?? null; - - if ($value === null) { - $properties['seats'] = null; - goto after_seats; - } - - $properties['seats'] = $value; - - after_seats: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Ok::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new Ok(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok', $exception, stack: $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\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeatsForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok($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⚡️Operations⚡️Copilot⚡️ListCopilotSeatsForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed - { - assert($object instanceof Ok); - $result = []; - - $totalSeats = $object->totalSeats; - - if ($totalSeats === null) { - goto after_totalSeats; - } - - after_totalSeats: $result['total_seats'] = $totalSeats; - - $seats = $object->seats; - - if ($seats === null) { - goto after_seats; - } - - static $seatsSerializer0; - - if ($seatsSerializer0 === null) { - $seatsSerializer0 = new SerializeArrayItems(...[]); - } - - $seats = $seatsSerializer0->serialize($seats, $this); - after_seats: $result['seats'] = $seats; - - return $result; - } - - 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/Enterprises/Enterprise/Copilot/Metrics.php b/clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Copilot/Metrics.php deleted file mode 100644 index 4c6eaecbbfc..00000000000 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Copilot/Metrics.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/Enterprises/Enterprise/Copilot/Usage.php b/clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Copilot/Usage.php deleted file mode 100644 index 2bf40648263..00000000000 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/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/Enterprises/Enterprise/Team/TeamSlug/Copilot/Metrics.php b/clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Team/TeamSlug/Copilot/Metrics.php deleted file mode 100644 index 3ec18651851..00000000000 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Team/TeamSlug/Copilot/Metrics.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/Enterprises/Enterprise/Team/TeamSlug/Copilot/Usage.php b/clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Team/TeamSlug/Copilot/Usage.php deleted file mode 100644 index 1c667ef0c58..00000000000 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Enterprises/Enterprise/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/Operation/RateLimit.php b/clients/GitHub/src/Internal/Hydrator/Operation/RateLimit.php index 22901d01a6a..8ac2dfbb638 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/RateLimit.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/RateLimit.php @@ -313,6 +313,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Rate $properties['dependencySnapshots'] = $value; after_dependencySnapshots: + + $value = $payload['code_scanning_autofix'] ?? null; + + if ($value === null) { + $properties['codeScanningAutofix'] = null; + goto after_codeScanningAutofix; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'codeScanningAutofix'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RateLimit($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['codeScanningAutofix'] = $value; + + after_codeScanningAutofix: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\RateLimitOverview\Resources', $exception, stack: $this->hydrationStack); } @@ -652,6 +672,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $dependencySnapshots = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RateLimit($dependencySnapshots); after_dependencySnapshots: $result['dependency_snapshots'] = $dependencySnapshots; + $codeScanningAutofix = $object->codeScanningAutofix; + + if ($codeScanningAutofix === null) { + goto after_codeScanningAutofix; + } + + $codeScanningAutofix = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RateLimit($codeScanningAutofix); + after_codeScanningAutofix: $result['code_scanning_autofix'] = $codeScanningAutofix; + return $result; } diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php index 0afe0e9c5c9..cb80205f647 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php @@ -279,6 +279,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secr after_pushProtectionBypassRequestReviewer: + $value = $payload['push_protection_bypass_request_reviewer_comment'] ?? null; + + if ($value === null) { + $properties['pushProtectionBypassRequestReviewerComment'] = null; + goto after_pushProtectionBypassRequestReviewerComment; + } + + $properties['pushProtectionBypassRequestReviewerComment'] = $value; + + after_pushProtectionBypassRequestReviewerComment: + $value = $payload['push_protection_bypass_request_comment'] ?? null; if ($value === null) { @@ -909,6 +920,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $pushProtectionBypassRequestReviewer = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($pushProtectionBypassRequestReviewer); after_pushProtectionBypassRequestReviewer: $result['push_protection_bypass_request_reviewer'] = $pushProtectionBypassRequestReviewer; + $pushProtectionBypassRequestReviewerComment = $object->pushProtectionBypassRequestReviewerComment; + + if ($pushProtectionBypassRequestReviewerComment === null) { + goto after_pushProtectionBypassRequestReviewerComment; + } + + after_pushProtectionBypassRequestReviewerComment: $result['push_protection_bypass_request_reviewer_comment'] = $pushProtectionBypassRequestReviewerComment; + $pushProtectionBypassRequestComment = $object->pushProtectionBypassRequestComment; if ($pushProtectionBypassRequestComment === null) { diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlert.php b/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlert.php index b1fc6bd5fba..d991f36c2be 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlert.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlert.php @@ -445,6 +445,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secr after_pushProtectionBypassRequestReviewer: + $value = $payload['push_protection_bypass_request_reviewer_comment'] ?? null; + + if ($value === null) { + $properties['pushProtectionBypassRequestReviewerComment'] = null; + goto after_pushProtectionBypassRequestReviewerComment; + } + + $properties['pushProtectionBypassRequestReviewerComment'] = $value; + + after_pushProtectionBypassRequestReviewerComment: + $value = $payload['push_protection_bypass_request_comment'] ?? null; if ($value === null) { @@ -4630,6 +4641,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $pushProtectionBypassRequestReviewer = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($pushProtectionBypassRequestReviewer); after_pushProtectionBypassRequestReviewer: $result['push_protection_bypass_request_reviewer'] = $pushProtectionBypassRequestReviewer; + $pushProtectionBypassRequestReviewerComment = $object->pushProtectionBypassRequestReviewerComment; + + if ($pushProtectionBypassRequestReviewerComment === null) { + goto after_pushProtectionBypassRequestReviewerComment; + } + + after_pushProtectionBypassRequestReviewerComment: $result['push_protection_bypass_request_reviewer_comment'] = $pushProtectionBypassRequestReviewerComment; + $pushProtectionBypassRequestComment = $object->pushProtectionBypassRequestComment; if ($pushProtectionBypassRequestComment === null) { diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php b/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php index 3bdaeb5ee03..8830968450b 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php @@ -441,6 +441,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secr after_pushProtectionBypassRequestReviewer: + $value = $payload['push_protection_bypass_request_reviewer_comment'] ?? null; + + if ($value === null) { + $properties['pushProtectionBypassRequestReviewerComment'] = null; + goto after_pushProtectionBypassRequestReviewerComment; + } + + $properties['pushProtectionBypassRequestReviewerComment'] = $value; + + after_pushProtectionBypassRequestReviewerComment: + $value = $payload['push_protection_bypass_request_comment'] ?? null; if ($value === null) { @@ -3973,6 +3984,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $pushProtectionBypassRequestReviewer = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($pushProtectionBypassRequestReviewer); after_pushProtectionBypassRequestReviewer: $result['push_protection_bypass_request_reviewer'] = $pushProtectionBypassRequestReviewer; + $pushProtectionBypassRequestReviewerComment = $object->pushProtectionBypassRequestReviewerComment; + + if ($pushProtectionBypassRequestReviewerComment === null) { + goto after_pushProtectionBypassRequestReviewerComment; + } + + after_pushProtectionBypassRequestReviewerComment: $result['push_protection_bypass_request_reviewer_comment'] = $pushProtectionBypassRequestReviewerComment; + $pushProtectionBypassRequestComment = $object->pushProtectionBypassRequestComment; if ($pushProtectionBypassRequestComment === null) { diff --git a/clients/GitHub/src/Internal/Hydrators.php b/clients/GitHub/src/Internal/Hydrators.php index 1fe1be4314a..88af7e021cd 100644 --- a/clients/GitHub/src/Internal/Hydrators.php +++ b/clients/GitHub/src/Internal/Hydrators.php @@ -38,13 +38,8 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\CodesOfConduct|null $operation🌀CodesOfConduct = null; private Internal\Hydrator\Operation\CodesOfConduct\Key|null $operation🌀CodesOfConduct🌀Key = null; private Internal\Hydrator\Operation\Emojis|null $operation🌀Emojis = null; - private Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Billing\Seats|null $operation🌀Enterprises🌀Enterprise🌀Copilot🌀Billing🌀Seats = null; - private Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Metrics|null $operation🌀Enterprises🌀Enterprise🌀Copilot🌀Metrics = null; - private Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Usage|null $operation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Dependabot\Alerts|null $operation🌀Enterprises🌀Enterprise🌀Dependabot🌀Alerts = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\SecretScanning\Alerts|null $operation🌀Enterprises🌀Enterprise🌀SecretScanning🌀Alerts = null; - private Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Metrics|null $operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Metrics = null; - private Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Usage|null $operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage = null; private Internal\Hydrator\Operation\Events|null $operation🌀Events = null; private Internal\Hydrator\Operation\Feeds|null $operation🌀Feeds = null; private Internal\Hydrator\Operation\Gists|null $operation🌀Gists = null; @@ -758,7 +753,6 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHub\\Schema\\ClassroomAssignment', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleClassroomRepository', '\\ApiClients\\Client\\GitHub\\Schema\\Classroom', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleClassroomOrganization' => $this->getObjectMapperOperation🌀Assignments🌀AssignmentId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\CodeOfConduct' => $this->getObjectMapperOperation🌀CodesOfConduct🌀Key()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Emojis\\Get\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Emojis()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Copilot\\ListCopilotSeatsForEnterprise\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Billing🌀Seats()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\SecretScanning\\ListAlertsForEnterprise\\Response\\ApplicationJson\\ServiceUnavailable' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀SecretScanning🌀Alerts()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Feed', '\\ApiClients\\Client\\GitHub\\Schema\\Feed\\Links', '\\ApiClients\\Client\\GitHub\\Schema\\LinkWithType' => $this->getObjectMapperOperation🌀Feeds()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\GistSimple', '\\ApiClients\\Client\\GitHub\\Schema\\GistSimple\\ForkOf', '\\ApiClients\\Client\\GitHub\\Schema\\GistSimple\\ForkOf\\Files', '\\ApiClients\\Client\\GitHub\\Schema\\GistSimple\\Files' => $this->getObjectMapperOperation🌀Gists()->hydrateObject($className, $payload), @@ -1119,7 +1113,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHub\\Schema\\ClassroomAssignment', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleClassroomRepository', '\\ApiClients\\Client\\GitHub\\Schema\\Classroom', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleClassroomOrganization' => $this->getObjectMapperOperation🌀Assignments🌀AssignmentId()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\CodeOfConduct' => $this->getObjectMapperOperation🌀CodesOfConduct🌀Key()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Emojis\\Get\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Emojis()->serializeObject($object), - '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Copilot\\ListCopilotSeatsForEnterprise\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Billing🌀Seats()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\SecretScanning\\ListAlertsForEnterprise\\Response\\ApplicationJson\\ServiceUnavailable' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀SecretScanning🌀Alerts()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Feed', '\\ApiClients\\Client\\GitHub\\Schema\\Feed\\Links', '\\ApiClients\\Client\\GitHub\\Schema\\LinkWithType' => $this->getObjectMapperOperation🌀Feeds()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\GistSimple', '\\ApiClients\\Client\\GitHub\\Schema\\GistSimple\\ForkOf', '\\ApiClients\\Client\\GitHub\\Schema\\GistSimple\\ForkOf\\Files', '\\ApiClients\\Client\\GitHub\\Schema\\GistSimple\\Files' => $this->getObjectMapperOperation🌀Gists()->serializeObject($object), @@ -1701,33 +1694,6 @@ public function getObjectMapperOperation🌀Emojis(): Internal\Hydrator\Operatio return $this->operation🌀Emojis; } - public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Billing🌀Seats(): Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Billing\Seats - { - if ($this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Billing🌀Seats instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Billing\Seats === false) { - $this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Billing🌀Seats = new Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Billing\Seats(); - } - - return $this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Billing🌀Seats; - } - - public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Metrics(): Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Metrics - { - if ($this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Metrics instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Metrics === false) { - $this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Metrics = new Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Metrics(); - } - - return $this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Metrics; - } - - public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage(): Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Usage - { - if ($this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Usage === false) { - $this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage = new Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Usage(); - } - - return $this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage; - } - public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Dependabot🌀Alerts(): Internal\Hydrator\Operation\Enterprises\Enterprise\Dependabot\Alerts { if ($this->operation🌀Enterprises🌀Enterprise🌀Dependabot🌀Alerts instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Dependabot\Alerts === false) { @@ -1746,24 +1712,6 @@ public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀SecretS return $this->operation🌀Enterprises🌀Enterprise🌀SecretScanning🌀Alerts; } - public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Metrics(): Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Metrics - { - if ($this->operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Metrics instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Metrics === false) { - $this->operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Metrics = new Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Metrics(); - } - - return $this->operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Metrics; - } - - public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage(): Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Usage - { - if ($this->operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Usage === false) { - $this->operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage = new Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Usage(); - } - - return $this->operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage; - } - public function getObjectMapperOperation🌀Events(): Internal\Hydrator\Operation\Events { if ($this->operation🌀Events instanceof Internal\Hydrator\Operation\Events === false) { diff --git a/clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterprise.php b/clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterprise.php deleted file mode 100644 index c2eac29592e..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterprise.php +++ /dev/null @@ -1,118 +0,0 @@ -enterprise = $enterprise; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{enterprise}', '{since}', '{until}', '{page}', '{per_page}'], [$this->enterprise, $this->since, $this->until, $this->page, $this->perPage], '/enterprises/{enterprise}/copilot/metrics' . '?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\CopilotUsageMetricsDay { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetricsDay::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetricsDay::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)); - /** - * 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)); - /** - * Copilot Usage Merics API setting is disabled at the organization or enterprise level. - **/ - - case 422: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(422, $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/CopilotMetricsForEnterpriseListing.php b/clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterpriseListing.php deleted file mode 100644 index 961cc57e8e8..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterpriseListing.php +++ /dev/null @@ -1,118 +0,0 @@ -enterprise = $enterprise; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{enterprise}', '{since}', '{until}', '{page}', '{per_page}'], [$this->enterprise, $this->since, $this->until, $this->page, $this->perPage], '/enterprises/{enterprise}/copilot/metrics' . '?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\CopilotUsageMetricsDay { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetricsDay::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetricsDay::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)); - /** - * 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)); - /** - * Copilot Usage Merics API setting is disabled at the organization or enterprise level. - **/ - - case 422: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(422, $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/CopilotMetricsForEnterpriseTeam.php b/clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeam.php deleted file mode 100644 index 3dbafaf60bb..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeam.php +++ /dev/null @@ -1,121 +0,0 @@ -enterprise = $enterprise; - $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(['{enterprise}', '{team_slug}', '{since}', '{until}', '{page}', '{per_page}'], [$this->enterprise, $this->teamSlug, $this->since, $this->until, $this->page, $this->perPage], '/enterprises/{enterprise}/team/{team_slug}/copilot/metrics' . '?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\CopilotUsageMetricsDay { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetricsDay::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetricsDay::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)); - /** - * 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)); - /** - * Copilot Usage Merics API setting is disabled at the organization or enterprise level. - **/ - - case 422: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(422, $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/CopilotMetricsForEnterpriseTeamListing.php b/clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeamListing.php deleted file mode 100644 index bc4e5419ce0..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeamListing.php +++ /dev/null @@ -1,121 +0,0 @@ -enterprise = $enterprise; - $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(['{enterprise}', '{team_slug}', '{since}', '{until}', '{page}', '{per_page}'], [$this->enterprise, $this->teamSlug, $this->since, $this->until, $this->page, $this->perPage], '/enterprises/{enterprise}/team/{team_slug}/copilot/metrics' . '?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\CopilotUsageMetricsDay { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetricsDay::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetricsDay::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)); - /** - * 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)); - /** - * Copilot Usage Merics API setting is disabled at the organization or enterprise level. - **/ - - case 422: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(422, $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/ListCopilotSeatsForEnterprise.php b/clients/GitHub/src/Internal/Operation/Copilot/ListCopilotSeatsForEnterprise.php deleted file mode 100644 index e4e460a3fd6..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/ListCopilotSeatsForEnterprise.php +++ /dev/null @@ -1,98 +0,0 @@ -enterprise = $enterprise; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{enterprise}', '{page}', '{per_page}'], [$this->enterprise, $this->page, $this->perPage], '/enterprises/{enterprise}/copilot/billing/seats' . '?page={page}&per_page={per_page}')); - } - - public function createResponse(ResponseInterface $response): Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok - { - $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: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - return $this->hydrator->hydrateObject(Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok::class, $body); - /** - * 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/UsageMetricsForEnterprise.php b/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForEnterprise.php deleted file mode 100644 index bb1d2eefb14..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForEnterprise.php +++ /dev/null @@ -1,118 +0,0 @@ -enterprise = $enterprise; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{enterprise}', '{since}', '{until}', '{page}', '{per_page}'], [$this->enterprise, $this->since, $this->until, $this->page, $this->perPage], '/enterprises/{enterprise}/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/UsageMetricsForEnterpriseListing.php b/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseListing.php deleted file mode 100644 index 36d2e19b3e4..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseListing.php +++ /dev/null @@ -1,118 +0,0 @@ -enterprise = $enterprise; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{enterprise}', '{since}', '{until}', '{page}', '{per_page}'], [$this->enterprise, $this->since, $this->until, $this->page, $this->perPage], '/enterprises/{enterprise}/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/UsageMetricsForEnterpriseTeam.php b/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeam.php deleted file mode 100644 index b9c2e94dde5..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeam.php +++ /dev/null @@ -1,121 +0,0 @@ -enterprise = $enterprise; - $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(['{enterprise}', '{team_slug}', '{since}', '{until}', '{page}', '{per_page}'], [$this->enterprise, $this->teamSlug, $this->since, $this->until, $this->page, $this->perPage], '/enterprises/{enterprise}/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/UsageMetricsForEnterpriseTeamListing.php b/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListing.php deleted file mode 100644 index 719b1c7620f..00000000000 --- a/clients/GitHub/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListing.php +++ /dev/null @@ -1,121 +0,0 @@ -enterprise = $enterprise; - $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(['{enterprise}', '{team_slug}', '{since}', '{until}', '{page}', '{per_page}'], [$this->enterprise, $this->teamSlug, $this->since, $this->until, $this->page, $this->perPage], '/enterprises/{enterprise}/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/Orgs/CreateOrUpdateCustomProperty.php b/clients/GitHub/src/Internal/Operation/Orgs/CreateOrUpdateCustomProperty.php index b2f50ba8ea3..58d123c69c1 100644 --- a/clients/GitHub/src/Internal/Operation/Orgs/CreateOrUpdateCustomProperty.php +++ b/clients/GitHub/src/Internal/Operation/Orgs/CreateOrUpdateCustomProperty.php @@ -36,7 +36,7 @@ public function __construct(private readonly SchemaValidator $requestSchemaValid public function createRequest(array $data): RequestInterface { - $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\CustomPropertySetPayload::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); return new Request('PUT', str_replace(['{org}', '{custom_property_name}'], [$this->org, $this->customPropertyName], '/orgs/{org}/properties/schema/{custom_property_name}'), ['Content-Type' => 'application/json'], json_encode($data)); } diff --git a/clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterprise.php b/clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterprise.php deleted file mode 100644 index b8f6b31ba5a..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterprise.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $enterprise, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\CopilotMetricsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $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/CopilotMetricsForEnterpriseListing.php b/clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterpriseListing.php deleted file mode 100644 index 8528c0b56df..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterpriseListing.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $enterprise, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\CopilotMetricsForEnterpriseListing($this->responseSchemaValidator, $this->hydrator, $enterprise, $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/CopilotMetricsForEnterpriseTeam.php b/clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterpriseTeam.php deleted file mode 100644 index d945e17c05d..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterpriseTeam.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - 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\CopilotMetricsForEnterpriseTeam($this->responseSchemaValidator, $this->hydrator, $enterprise, $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/CopilotMetricsForEnterpriseTeamListing.php b/clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterpriseTeamListing.php deleted file mode 100644 index 1bee8b7abf1..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/CopilotMetricsForEnterpriseTeamListing.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - 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\CopilotMetricsForEnterpriseTeamListing($this->responseSchemaValidator, $this->hydrator, $enterprise, $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/ListCopilotSeatsForEnterprise.php b/clients/GitHub/src/Internal/Operator/Copilot/ListCopilotSeatsForEnterprise.php deleted file mode 100644 index 3c2bc4b8a81..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/ListCopilotSeatsForEnterprise.php +++ /dev/null @@ -1,41 +0,0 @@ -responseSchemaValidator, $this->hydrator, $enterprise, $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): Ok { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterprise.php b/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterprise.php deleted file mode 100644 index 10ec081493b..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterprise.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $enterprise, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\UsageMetricsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $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/UsageMetricsForEnterpriseListing.php b/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseListing.php deleted file mode 100644 index 46fcd63f526..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseListing.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $enterprise, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\UsageMetricsForEnterpriseListing($this->responseSchemaValidator, $this->hydrator, $enterprise, $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/UsageMetricsForEnterpriseTeam.php b/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeam.php deleted file mode 100644 index 33b847c54d9..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeam.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - 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); - $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/UsageMetricsForEnterpriseTeamListing.php b/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeamListing.php deleted file mode 100644 index 8973d67374f..00000000000 --- a/clients/GitHub/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeamListing.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - 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); - $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/Orgs/CreateOrUpdateCustomProperty.php b/clients/GitHub/src/Internal/Operator/Orgs/CreateOrUpdateCustomProperty.php index 823a782717f..99d6f4adbcf 100644 --- a/clients/GitHub/src/Internal/Operator/Orgs/CreateOrUpdateCustomProperty.php +++ b/clients/GitHub/src/Internal/Operator/Orgs/CreateOrUpdateCustomProperty.php @@ -24,7 +24,6 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return */ public function call(string $org, string $customPropertyName, array $params): CustomProperty { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\CreateOrUpdateCustomProperty($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $customPropertyName); diff --git a/clients/GitHub/src/Internal/Operators.php b/clients/GitHub/src/Internal/Operators.php index 9fc0b1a9fba..36a7e384107 100644 --- a/clients/GitHub/src/Internal/Operators.php +++ b/clients/GitHub/src/Internal/Operators.php @@ -48,17 +48,8 @@ final class Operators private Internal\Operator\CodesOfConduct\GetAllCodesOfConduct|null $codesOfConduct👷GetAllCodesOfConduct = null; private Internal\Operator\CodesOfConduct\GetConductCode|null $codesOfConduct👷GetConductCode = null; private Internal\Operator\Emojis\Get|null $emojis👷Get = null; - private Internal\Operator\Copilot\ListCopilotSeatsForEnterprise|null $copilot👷ListCopilotSeatsForEnterprise = null; - private Internal\Operator\Copilot\CopilotMetricsForEnterprise|null $copilot👷CopilotMetricsForEnterprise = null; - private Internal\Operator\Copilot\CopilotMetricsForEnterpriseListing|null $copilot👷CopilotMetricsForEnterpriseListing = null; - private Internal\Operator\Copilot\UsageMetricsForEnterprise|null $copilot👷UsageMetricsForEnterprise = null; - private Internal\Operator\Copilot\UsageMetricsForEnterpriseListing|null $copilot👷UsageMetricsForEnterpriseListing = null; private Internal\Operator\Dependabot\ListAlertsForEnterprise|null $dependabot👷ListAlertsForEnterprise = null; private Internal\Operator\SecretScanning\ListAlertsForEnterprise|null $secretScanning👷ListAlertsForEnterprise = null; - private Internal\Operator\Copilot\CopilotMetricsForEnterpriseTeam|null $copilot👷CopilotMetricsForEnterpriseTeam = null; - private Internal\Operator\Copilot\CopilotMetricsForEnterpriseTeamListing|null $copilot👷CopilotMetricsForEnterpriseTeamListing = null; - private Internal\Operator\Copilot\UsageMetricsForEnterpriseTeam|null $copilot👷UsageMetricsForEnterpriseTeam = null; - private Internal\Operator\Copilot\UsageMetricsForEnterpriseTeamListing|null $copilot👷UsageMetricsForEnterpriseTeamListing = null; private Internal\Operator\Activity\ListPublicEvents|null $activity👷ListPublicEvents = null; private Internal\Operator\Activity\ListPublicEventsListing|null $activity👷ListPublicEventsListing = null; private Internal\Operator\Activity\GetFeeds|null $activity👷GetFeeds = null; @@ -1518,51 +1509,6 @@ public function emojis👷Get(): Internal\Operator\Emojis\Get return $this->emojis👷Get; } - public function copilot👷ListCopilotSeatsForEnterprise(): Internal\Operator\Copilot\ListCopilotSeatsForEnterprise - { - if ($this->copilot👷ListCopilotSeatsForEnterprise instanceof Internal\Operator\Copilot\ListCopilotSeatsForEnterprise === false) { - $this->copilot👷ListCopilotSeatsForEnterprise = new Internal\Operator\Copilot\ListCopilotSeatsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Billing🌀Seats()); - } - - return $this->copilot👷ListCopilotSeatsForEnterprise; - } - - public function copilot👷CopilotMetricsForEnterprise(): Internal\Operator\Copilot\CopilotMetricsForEnterprise - { - if ($this->copilot👷CopilotMetricsForEnterprise instanceof Internal\Operator\Copilot\CopilotMetricsForEnterprise === false) { - $this->copilot👷CopilotMetricsForEnterprise = new Internal\Operator\Copilot\CopilotMetricsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Metrics()); - } - - return $this->copilot👷CopilotMetricsForEnterprise; - } - - public function copilot👷CopilotMetricsForEnterpriseListing(): Internal\Operator\Copilot\CopilotMetricsForEnterpriseListing - { - if ($this->copilot👷CopilotMetricsForEnterpriseListing instanceof Internal\Operator\Copilot\CopilotMetricsForEnterpriseListing === false) { - $this->copilot👷CopilotMetricsForEnterpriseListing = new Internal\Operator\Copilot\CopilotMetricsForEnterpriseListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Metrics()); - } - - return $this->copilot👷CopilotMetricsForEnterpriseListing; - } - - public function copilot👷UsageMetricsForEnterprise(): Internal\Operator\Copilot\UsageMetricsForEnterprise - { - if ($this->copilot👷UsageMetricsForEnterprise instanceof Internal\Operator\Copilot\UsageMetricsForEnterprise === false) { - $this->copilot👷UsageMetricsForEnterprise = new Internal\Operator\Copilot\UsageMetricsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForEnterprise; - } - - public function copilot👷UsageMetricsForEnterpriseListing(): Internal\Operator\Copilot\UsageMetricsForEnterpriseListing - { - if ($this->copilot👷UsageMetricsForEnterpriseListing instanceof Internal\Operator\Copilot\UsageMetricsForEnterpriseListing === false) { - $this->copilot👷UsageMetricsForEnterpriseListing = new Internal\Operator\Copilot\UsageMetricsForEnterpriseListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForEnterpriseListing; - } - public function dependabot👷ListAlertsForEnterprise(): Internal\Operator\Dependabot\ListAlertsForEnterprise { if ($this->dependabot👷ListAlertsForEnterprise instanceof Internal\Operator\Dependabot\ListAlertsForEnterprise === false) { @@ -1581,42 +1527,6 @@ public function secretScanning👷ListAlertsForEnterprise(): Internal\Operator\S return $this->secretScanning👷ListAlertsForEnterprise; } - public function copilot👷CopilotMetricsForEnterpriseTeam(): Internal\Operator\Copilot\CopilotMetricsForEnterpriseTeam - { - if ($this->copilot👷CopilotMetricsForEnterpriseTeam instanceof Internal\Operator\Copilot\CopilotMetricsForEnterpriseTeam === false) { - $this->copilot👷CopilotMetricsForEnterpriseTeam = new Internal\Operator\Copilot\CopilotMetricsForEnterpriseTeam($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Metrics()); - } - - return $this->copilot👷CopilotMetricsForEnterpriseTeam; - } - - public function copilot👷CopilotMetricsForEnterpriseTeamListing(): Internal\Operator\Copilot\CopilotMetricsForEnterpriseTeamListing - { - if ($this->copilot👷CopilotMetricsForEnterpriseTeamListing instanceof Internal\Operator\Copilot\CopilotMetricsForEnterpriseTeamListing === false) { - $this->copilot👷CopilotMetricsForEnterpriseTeamListing = new Internal\Operator\Copilot\CopilotMetricsForEnterpriseTeamListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Metrics()); - } - - return $this->copilot👷CopilotMetricsForEnterpriseTeamListing; - } - - public function copilot👷UsageMetricsForEnterpriseTeam(): Internal\Operator\Copilot\UsageMetricsForEnterpriseTeam - { - if ($this->copilot👷UsageMetricsForEnterpriseTeam instanceof Internal\Operator\Copilot\UsageMetricsForEnterpriseTeam === false) { - $this->copilot👷UsageMetricsForEnterpriseTeam = new Internal\Operator\Copilot\UsageMetricsForEnterpriseTeam($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForEnterpriseTeam; - } - - public function copilot👷UsageMetricsForEnterpriseTeamListing(): Internal\Operator\Copilot\UsageMetricsForEnterpriseTeamListing - { - if ($this->copilot👷UsageMetricsForEnterpriseTeamListing instanceof Internal\Operator\Copilot\UsageMetricsForEnterpriseTeamListing === false) { - $this->copilot👷UsageMetricsForEnterpriseTeamListing = new Internal\Operator\Copilot\UsageMetricsForEnterpriseTeamListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForEnterpriseTeamListing; - } - public function activity👷ListPublicEvents(): Internal\Operator\Activity\ListPublicEvents { if ($this->activity👷ListPublicEvents instanceof Internal\Operator\Activity\ListPublicEvents === false) { diff --git a/clients/GitHub/src/Internal/Router/Get/Copilot.php b/clients/GitHub/src/Internal/Router/Get/Copilot.php index bb1e7ad9976..3bbe3d50797 100644 --- a/clients/GitHub/src/Internal/Router/Get/Copilot.php +++ b/clients/GitHub/src/Internal/Router/Get/Copilot.php @@ -8,7 +8,7 @@ use ApiClients\Client\GitHub\Schema; use ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails; use ApiClients\Client\GitHub\Schema\CopilotSeatDetails; -use ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok; use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; use InvalidArgumentException; @@ -23,84 +23,6 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return Observable */ - public function copilotMetricsForEnterprise(array $params): iterable - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - 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\CopilotMetricsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Metrics()); - - return $operator->call($arguments['enterprise'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); - } - - /** @return Observable */ - public function usageMetricsForEnterprise(array $params): iterable - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - 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\UsageMetricsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage()); - - return $operator->call($arguments['enterprise'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); - } - /** @return */ public function getCopilotOrganizationDetails(array $params): CopilotOrganizationDetails|WithoutBody { @@ -195,34 +117,7 @@ public function usageMetricsForOrg(array $params): iterable } /** @return */ - public function listCopilotSeatsForEnterprise(array $params): Ok - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - 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\ListCopilotSeatsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Billing🌀Seats()); - - return $operator->call($arguments['enterprise'], $arguments['page'], $arguments['per_page']); - } - - /** @return */ - public function listCopilotSeats(array $params): \ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok + public function listCopilotSeats(array $params): Ok { $arguments = []; if (array_key_exists('org', $params) === false) { @@ -269,96 +164,6 @@ public function getCopilotSeatDetailsForUser(array $params): CopilotSeatDetails| return $operator->call($arguments['org'], $arguments['username']); } - /** @return Observable */ - public function copilotMetricsForEnterpriseTeam(array $params): iterable - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - 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\CopilotMetricsForEnterpriseTeam($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Metrics()); - - return $operator->call($arguments['enterprise'], $arguments['team_slug'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); - } - - /** @return Observable */ - public function usageMetricsForEnterpriseTeam(array $params): iterable - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - 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\UsageMetricsForEnterpriseTeam($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - - return $operator->call($arguments['enterprise'], $arguments['team_slug'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); - } - /** @return Observable */ public function copilotMetricsForTeam(array $params): iterable { diff --git a/clients/GitHub/src/Internal/Router/Get/Five.php b/clients/GitHub/src/Internal/Router/Get/Five.php index 4ac4c3b22e0..ca9fc5426b3 100644 --- a/clients/GitHub/src/Internal/Router/Get/Five.php +++ b/clients/GitHub/src/Internal/Router/Get/Five.php @@ -51,7 +51,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|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 */ + /** @return |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|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|ActionsOrganizationPermissions|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|RepositoryRuleset|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|EmptyObject { if ($pathChunks[0] === '') { @@ -67,17 +67,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive } } elseif ($pathChunks[1] === 'enterprises') { if ($pathChunks[2] === '{enterprise}') { - if ($pathChunks[3] === 'copilot') { - if ($pathChunks[4] === 'metrics') { - if ($call === 'GET /enterprises/{enterprise}/copilot/metrics') { - return $this->routers->internal🔀Router🔀Get🔀Copilot()->copilotMetricsForEnterprise($params); - } - } elseif ($pathChunks[4] === 'usage') { - if ($call === 'GET /enterprises/{enterprise}/copilot/usage') { - return $this->routers->internal🔀Router🔀Get🔀Copilot()->usageMetricsForEnterprise($params); - } - } - } elseif ($pathChunks[3] === 'dependabot') { + if ($pathChunks[3] === 'dependabot') { if ($pathChunks[4] === 'alerts') { if ($call === 'GET /enterprises/{enterprise}/dependabot/alerts') { return $this->routers->internal🔀Router🔀Get🔀Dependabot()->listAlertsForEnterprise($params); diff --git a/clients/GitHub/src/Internal/Router/Get/Seven.php b/clients/GitHub/src/Internal/Router/Get/Seven.php index 171aa5e5e13..2fc7234ffe1 100644 --- a/clients/GitHub/src/Internal/Router/Get/Seven.php +++ b/clients/GitHub/src/Internal/Router/Get/Seven.php @@ -63,29 +63,11 @@ 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 */ - public function call(string $call, array $params, array $pathChunks): iterable|OidcCustomSub|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|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 + /** @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 */ + public function call(string $call, array $params, array $pathChunks): OidcCustomSub|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|Json|WithoutBody|iterable|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PagesDeploymentStatus|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|RuleSuite|SecretScanningAlert|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { - if ($pathChunks[1] === 'enterprises') { - if ($pathChunks[2] === '{enterprise}') { - if ($pathChunks[3] === 'team') { - if ($pathChunks[4] === '{team_slug}') { - if ($pathChunks[5] === 'copilot') { - if ($pathChunks[6] === 'metrics') { - if ($call === 'GET /enterprises/{enterprise}/team/{team_slug}/copilot/metrics') { - return $this->routers->internal🔀Router🔀Get🔀Copilot()->copilotMetricsForEnterpriseTeam($params); - } - } elseif ($pathChunks[6] === 'usage') { - if ($call === 'GET /enterprises/{enterprise}/team/{team_slug}/copilot/usage') { - return $this->routers->internal🔀Router🔀Get🔀Copilot()->usageMetricsForEnterpriseTeam($params); - } - } - } - } - } - } - } elseif ($pathChunks[1] === 'orgs') { + if ($pathChunks[1] === 'orgs') { if ($pathChunks[2] === '{org}') { if ($pathChunks[3] === 'actions') { if ($pathChunks[4] === 'oidc') { diff --git a/clients/GitHub/src/Internal/Router/Get/Six.php b/clients/GitHub/src/Internal/Router/Get/Six.php index 48b11e3354e..b01d6f5e2a0 100644 --- a/clients/GitHub/src/Internal/Router/Get/Six.php +++ b/clients/GitHub/src/Internal/Router/Get/Six.php @@ -47,8 +47,8 @@ use ApiClients\Client\GitHub\Schema\Issue; use ApiClients\Client\GitHub\Schema\Label; use ApiClients\Client\GitHub\Schema\Milestone; +use ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok; use ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json; -use ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok; use ApiClients\Client\GitHub\Schema\OrganizationActionsSecret; use ApiClients\Client\GitHub\Schema\OrganizationActionsVariable; use ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret; @@ -78,23 +78,11 @@ public function __construct(private Routers $routers) { } - /** @return |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|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): Ok|iterable|BillingUsageReport|ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsOrg|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|SecretScanningScanHistory|RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|TeamRepository|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails + /** @return 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|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): iterable|BillingUsageReport|ActionsCacheUsageOrgEnterprise|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsOrg|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|SecretScanningScanHistory|RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|TeamRepository|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { - if ($pathChunks[1] === 'enterprises') { - if ($pathChunks[2] === '{enterprise}') { - if ($pathChunks[3] === 'copilot') { - if ($pathChunks[4] === 'billing') { - if ($pathChunks[5] === 'seats') { - if ($call === 'GET /enterprises/{enterprise}/copilot/billing/seats') { - return $this->routers->internal🔀Router🔀Get🔀Copilot()->listCopilotSeatsForEnterprise($params); - } - } - } - } - } - } elseif ($pathChunks[1] === 'marketplace_listing') { + if ($pathChunks[1] === 'marketplace_listing') { if ($pathChunks[2] === 'stubbed') { if ($pathChunks[3] === 'plans') { if ($pathChunks[4] === '{plan_id}') { diff --git a/clients/GitHub/src/Internal/Router/List/ApiInsights.php b/clients/GitHub/src/Internal/Router/List/ApiInsights.php index bc396dbe343..2b673684456 100644 --- a/clients/GitHub/src/Internal/Router/List/ApiInsights.php +++ b/clients/GitHub/src/Internal/Router/List/ApiInsights.php @@ -20,8 +20,8 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return Observable */ - public function getUserStatsListing(array $params): iterable + /** @return Observable */ + public function getSubjectStatsListing(array $params): iterable { $arguments = []; if (array_key_exists('org', $params) === false) { @@ -30,12 +30,6 @@ public function getUserStatsListing(array $params): iterable $arguments['org'] = $params['org']; unset($params['org']); - if (array_key_exists('user_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: user_id'); - } - - $arguments['user_id'] = $params['user_id']; - unset($params['user_id']); if (array_key_exists('min_timestamp', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: min_timestamp'); } @@ -54,12 +48,12 @@ public function getUserStatsListing(array $params): iterable $arguments['sort'] = $params['sort']; unset($params['sort']); - if (array_key_exists('actor_name_substring', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: actor_name_substring'); + if (array_key_exists('subject_name_substring', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: subject_name_substring'); } - $arguments['actor_name_substring'] = $params['actor_name_substring']; - unset($params['actor_name_substring']); + $arguments['subject_name_substring'] = $params['subject_name_substring']; + unset($params['subject_name_substring']); if (array_key_exists('page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: page'); } @@ -80,8 +74,8 @@ public function getUserStatsListing(array $params): iterable unset($params['direction']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\ApiInsights\GetUserStatsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Insights🌀Api🌀UserStats🌀UserId()); - $items = [...$operator->call($arguments['org'], $arguments['user_id'], $arguments['min_timestamp'], $arguments['max_timestamp'], $arguments['sort'], $arguments['actor_name_substring'], $arguments['page'], $arguments['per_page'], $arguments['direction'])]; + $operator = new Internal\Operator\ApiInsights\GetSubjectStatsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Insights🌀Api🌀SubjectStats()); + $items = [...$operator->call($arguments['org'], $arguments['min_timestamp'], $arguments['max_timestamp'], $arguments['sort'], $arguments['subject_name_substring'], $arguments['page'], $arguments['per_page'], $arguments['direction'])]; yield from $items; @@ -89,8 +83,8 @@ public function getUserStatsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function getSubjectStatsListing(array $params): iterable + /** @return Observable */ + public function getRouteStatsByActorListing(array $params): iterable { $arguments = []; if (array_key_exists('org', $params) === false) { @@ -99,6 +93,18 @@ public function getSubjectStatsListing(array $params): iterable $arguments['org'] = $params['org']; unset($params['org']); + if (array_key_exists('actor_type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: actor_type'); + } + + $arguments['actor_type'] = $params['actor_type']; + unset($params['actor_type']); + if (array_key_exists('actor_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: actor_id'); + } + + $arguments['actor_id'] = $params['actor_id']; + unset($params['actor_id']); if (array_key_exists('min_timestamp', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: min_timestamp'); } @@ -117,12 +123,12 @@ public function getSubjectStatsListing(array $params): iterable $arguments['sort'] = $params['sort']; unset($params['sort']); - if (array_key_exists('subject_name_substring', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: subject_name_substring'); + if (array_key_exists('api_route_substring', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: api_route_substring'); } - $arguments['subject_name_substring'] = $params['subject_name_substring']; - unset($params['subject_name_substring']); + $arguments['api_route_substring'] = $params['api_route_substring']; + unset($params['api_route_substring']); if (array_key_exists('page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: page'); } @@ -143,8 +149,8 @@ public function getSubjectStatsListing(array $params): iterable unset($params['direction']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\ApiInsights\GetSubjectStatsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Insights🌀Api🌀SubjectStats()); - $items = [...$operator->call($arguments['org'], $arguments['min_timestamp'], $arguments['max_timestamp'], $arguments['sort'], $arguments['subject_name_substring'], $arguments['page'], $arguments['per_page'], $arguments['direction'])]; + $operator = new Internal\Operator\ApiInsights\GetRouteStatsByActorListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Insights🌀Api🌀RouteStats🌀ActorType🌀ActorId()); + $items = [...$operator->call($arguments['org'], $arguments['actor_type'], $arguments['actor_id'], $arguments['min_timestamp'], $arguments['max_timestamp'], $arguments['sort'], $arguments['api_route_substring'], $arguments['page'], $arguments['per_page'], $arguments['direction'])]; yield from $items; @@ -152,8 +158,8 @@ public function getSubjectStatsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function getRouteStatsByActorListing(array $params): iterable + /** @return Observable */ + public function getUserStatsListing(array $params): iterable { $arguments = []; if (array_key_exists('org', $params) === false) { @@ -162,18 +168,12 @@ public function getRouteStatsByActorListing(array $params): iterable $arguments['org'] = $params['org']; unset($params['org']); - if (array_key_exists('actor_type', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: actor_type'); - } - - $arguments['actor_type'] = $params['actor_type']; - unset($params['actor_type']); - if (array_key_exists('actor_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: actor_id'); + if (array_key_exists('user_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: user_id'); } - $arguments['actor_id'] = $params['actor_id']; - unset($params['actor_id']); + $arguments['user_id'] = $params['user_id']; + unset($params['user_id']); if (array_key_exists('min_timestamp', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: min_timestamp'); } @@ -192,12 +192,12 @@ public function getRouteStatsByActorListing(array $params): iterable $arguments['sort'] = $params['sort']; unset($params['sort']); - if (array_key_exists('api_route_substring', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: api_route_substring'); + if (array_key_exists('actor_name_substring', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: actor_name_substring'); } - $arguments['api_route_substring'] = $params['api_route_substring']; - unset($params['api_route_substring']); + $arguments['actor_name_substring'] = $params['actor_name_substring']; + unset($params['actor_name_substring']); if (array_key_exists('page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: page'); } @@ -218,8 +218,8 @@ public function getRouteStatsByActorListing(array $params): iterable unset($params['direction']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\ApiInsights\GetRouteStatsByActorListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Insights🌀Api🌀RouteStats🌀ActorType🌀ActorId()); - $items = [...$operator->call($arguments['org'], $arguments['actor_type'], $arguments['actor_id'], $arguments['min_timestamp'], $arguments['max_timestamp'], $arguments['sort'], $arguments['api_route_substring'], $arguments['page'], $arguments['per_page'], $arguments['direction'])]; + $operator = new Internal\Operator\ApiInsights\GetUserStatsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Insights🌀Api🌀UserStats🌀UserId()); + $items = [...$operator->call($arguments['org'], $arguments['user_id'], $arguments['min_timestamp'], $arguments['max_timestamp'], $arguments['sort'], $arguments['actor_name_substring'], $arguments['page'], $arguments['per_page'], $arguments['direction'])]; yield from $items; diff --git a/clients/GitHub/src/Internal/Router/List/Copilot.php b/clients/GitHub/src/Internal/Router/List/Copilot.php index 638701d08a3..c12f3d7f8b3 100644 --- a/clients/GitHub/src/Internal/Router/List/Copilot.php +++ b/clients/GitHub/src/Internal/Router/List/Copilot.php @@ -20,96 +20,6 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return Observable */ - public function copilotMetricsForEnterpriseListing(array $params): iterable - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - 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\CopilotMetricsForEnterpriseListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Metrics()); - $items = [...$operator->call($arguments['enterprise'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page'])]; - - yield from $items; - - $arguments['page']++; - } while (count($items) > 0); - } - - /** @return Observable */ - public function usageMetricsForEnterpriseListing(array $params): iterable - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - 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\UsageMetricsForEnterpriseListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage()); - $items = [...$operator->call($arguments['enterprise'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page'])]; - - yield from $items; - - $arguments['page']++; - } while (count($items) > 0); - } - /** @return Observable */ public function copilotMetricsForOrganizationListing(array $params): iterable { @@ -200,108 +110,6 @@ public function usageMetricsForOrgListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function copilotMetricsForEnterpriseTeamListing(array $params): iterable - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - 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\CopilotMetricsForEnterpriseTeamListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Metrics()); - $items = [...$operator->call($arguments['enterprise'], $arguments['team_slug'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page'])]; - - yield from $items; - - $arguments['page']++; - } while (count($items) > 0); - } - - /** @return Observable */ - public function usageMetricsForEnterpriseTeamListing(array $params): iterable - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - 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\UsageMetricsForEnterpriseTeamListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - $items = [...$operator->call($arguments['enterprise'], $arguments['team_slug'], $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 { diff --git a/clients/GitHub/src/Internal/Router/List/Five.php b/clients/GitHub/src/Internal/Router/List/Five.php index fb1ba1d4709..8da240fa0c8 100644 --- a/clients/GitHub/src/Internal/Router/List/Five.php +++ b/clients/GitHub/src/Internal/Router/List/Five.php @@ -16,25 +16,11 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|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 */ + /** @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 */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { - if ($pathChunks[1] === 'enterprises') { - if ($pathChunks[2] === '{enterprise}') { - if ($pathChunks[3] === 'copilot') { - if ($pathChunks[4] === 'metrics') { - if ($call === 'LIST /enterprises/{enterprise}/copilot/metrics') { - return $this->routers->internal🔀Router🔀List🔀Copilot()->copilotMetricsForEnterpriseListing($params); - } - } elseif ($pathChunks[4] === 'usage') { - if ($call === 'LIST /enterprises/{enterprise}/copilot/usage') { - return $this->routers->internal🔀Router🔀List🔀Copilot()->usageMetricsForEnterpriseListing($params); - } - } - } - } - } elseif ($pathChunks[1] === 'marketplace_listing') { + if ($pathChunks[1] === 'marketplace_listing') { if ($pathChunks[2] === 'plans') { if ($pathChunks[3] === '{plan_id}') { if ($pathChunks[4] === 'accounts') { diff --git a/clients/GitHub/src/Internal/Router/List/Issues.php b/clients/GitHub/src/Internal/Router/List/Issues.php index 51cbca308e5..c77cd8ba6c6 100644 --- a/clients/GitHub/src/Internal/Router/List/Issues.php +++ b/clients/GitHub/src/Internal/Router/List/Issues.php @@ -470,7 +470,7 @@ public function listMilestonesListing(array $params): iterable } /** @return Observable */ - public function listCommentsListing(array $params): iterable + public function listCommentsForRepoListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -485,18 +485,24 @@ public function listCommentsListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('issue_number', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: issue_number'); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); } - $arguments['issue_number'] = $params['issue_number']; - unset($params['issue_number']); + $arguments['direction'] = $params['direction']; + unset($params['direction']); 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('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -511,8 +517,8 @@ public function listCommentsListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Issues\ListCommentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Comments()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['since'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Issues\ListCommentsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['direction'], $arguments['since'], $arguments['sort'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -520,8 +526,8 @@ public function listCommentsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listEventsListing(array $params): iterable + /** @return Observable */ + public function listEventsForRepoListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -536,12 +542,6 @@ public function listEventsListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('issue_number', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: issue_number'); - } - - $arguments['issue_number'] = $params['issue_number']; - unset($params['issue_number']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -556,8 +556,8 @@ public function listEventsListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Issues\ListEventsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Events()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Issues\ListEventsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Events()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -565,8 +565,8 @@ public function listEventsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable|Schema\BasicError */ - public function listLabelsOnIssueListing(array $params): iterable|BasicError + /** @return Observable */ + public function listCommentsListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -587,6 +587,12 @@ public function listLabelsOnIssueListing(array $params): iterable|BasicError $arguments['issue_number'] = $params['issue_number']; unset($params['issue_number']); + 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('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -601,8 +607,8 @@ public function listLabelsOnIssueListing(array $params): iterable|BasicError unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Issues\ListLabelsOnIssueListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Labels()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Issues\ListCommentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Comments()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['since'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -610,8 +616,8 @@ public function listLabelsOnIssueListing(array $params): iterable|BasicError } while (count($items) > 0); } - /** @return Observable */ - public function listSubIssuesListing(array $params): iterable + /** @return Observable */ + public function listEventsListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -646,7 +652,7 @@ public function listSubIssuesListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Issues\ListSubIssuesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + $operator = new Internal\Operator\Issues\ListEventsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Events()); $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -655,8 +661,8 @@ public function listSubIssuesListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listEventsForTimelineListing(array $params): iterable + /** @return Observable|Schema\BasicError */ + public function listLabelsOnIssueListing(array $params): iterable|BasicError { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -691,7 +697,7 @@ public function listEventsForTimelineListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Issues\ListEventsForTimelineListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Timeline()); + $operator = new Internal\Operator\Issues\ListLabelsOnIssueListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Labels()); $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -700,8 +706,8 @@ public function listEventsForTimelineListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listLabelsForMilestoneListing(array $params): iterable + /** @return Observable */ + public function listSubIssuesListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -716,12 +722,12 @@ public function listLabelsForMilestoneListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('milestone_number', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: milestone_number'); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); } - $arguments['milestone_number'] = $params['milestone_number']; - unset($params['milestone_number']); + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -736,8 +742,8 @@ public function listLabelsForMilestoneListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Issues\ListLabelsForMilestoneListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Milestones🌀MilestoneNumber🌀Labels()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone_number'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Issues\ListSubIssuesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -745,8 +751,8 @@ public function listLabelsForMilestoneListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listCommentsForRepoListing(array $params): iterable + /** @return Observable */ + public function listEventsForTimelineListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -761,24 +767,12 @@ public function listCommentsForRepoListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('direction', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: direction'); - } - - $arguments['direction'] = $params['direction']; - unset($params['direction']); - 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('sort', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: sort'); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); } - $arguments['sort'] = $params['sort']; - unset($params['sort']); + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -793,8 +787,8 @@ public function listCommentsForRepoListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Issues\ListCommentsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['direction'], $arguments['since'], $arguments['sort'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Issues\ListEventsForTimelineListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Timeline()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -802,8 +796,8 @@ public function listCommentsForRepoListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listEventsForRepoListing(array $params): iterable + /** @return Observable */ + public function listLabelsForMilestoneListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -818,6 +812,12 @@ public function listEventsForRepoListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); + if (array_key_exists('milestone_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: milestone_number'); + } + + $arguments['milestone_number'] = $params['milestone_number']; + unset($params['milestone_number']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -832,8 +832,8 @@ public function listEventsForRepoListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Issues\ListEventsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Events()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Issues\ListLabelsForMilestoneListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Milestones🌀MilestoneNumber🌀Labels()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone_number'], $arguments['per_page'], $arguments['page'])]; yield from $items; diff --git a/clients/GitHub/src/Internal/Router/List/Packages.php b/clients/GitHub/src/Internal/Router/List/Packages.php index efcc8c97c28..2c95e7d207a 100644 --- a/clients/GitHub/src/Internal/Router/List/Packages.php +++ b/clients/GitHub/src/Internal/Router/List/Packages.php @@ -151,7 +151,7 @@ public function listPackagesForUserListing(array $params): iterable|WithoutBody } /** @return Observable */ - public function getAllPackageVersionsForPackageOwnedByOrgListing(array $params): iterable + public function getAllPackageVersionsForPackageOwnedByAuthenticatedUserListing(array $params): iterable { $arguments = []; if (array_key_exists('package_type', $params) === false) { @@ -166,12 +166,6 @@ public function getAllPackageVersionsForPackageOwnedByOrgListing(array $params): $arguments['package_name'] = $params['package_name']; unset($params['package_name']); - 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('page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: page'); } @@ -192,8 +186,8 @@ public function getAllPackageVersionsForPackageOwnedByOrgListing(array $params): unset($params['state']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Packages\GetAllPackageVersionsForPackageOwnedByOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Packages🌀PackageType🌀PackageName🌀Versions()); - $items = [...$operator->call($arguments['package_type'], $arguments['package_name'], $arguments['org'], $arguments['page'], $arguments['per_page'], $arguments['state'])]; + $operator = new Internal\Operator\Packages\GetAllPackageVersionsForPackageOwnedByAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Packages🌀PackageType🌀PackageName🌀Versions()); + $items = [...$operator->call($arguments['package_type'], $arguments['package_name'], $arguments['page'], $arguments['per_page'], $arguments['state'])]; yield from $items; @@ -202,7 +196,7 @@ public function getAllPackageVersionsForPackageOwnedByOrgListing(array $params): } /** @return Observable */ - public function getAllPackageVersionsForPackageOwnedByAuthenticatedUserListing(array $params): iterable + public function getAllPackageVersionsForPackageOwnedByOrgListing(array $params): iterable { $arguments = []; if (array_key_exists('package_type', $params) === false) { @@ -217,6 +211,12 @@ public function getAllPackageVersionsForPackageOwnedByAuthenticatedUserListing(a $arguments['package_name'] = $params['package_name']; unset($params['package_name']); + 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('page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: page'); } @@ -237,8 +237,8 @@ public function getAllPackageVersionsForPackageOwnedByAuthenticatedUserListing(a unset($params['state']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Packages\GetAllPackageVersionsForPackageOwnedByAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Packages🌀PackageType🌀PackageName🌀Versions()); - $items = [...$operator->call($arguments['package_type'], $arguments['package_name'], $arguments['page'], $arguments['per_page'], $arguments['state'])]; + $operator = new Internal\Operator\Packages\GetAllPackageVersionsForPackageOwnedByOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Packages🌀PackageType🌀PackageName🌀Versions()); + $items = [...$operator->call($arguments['package_type'], $arguments['package_name'], $arguments['org'], $arguments['page'], $arguments['per_page'], $arguments['state'])]; yield from $items; diff --git a/clients/GitHub/src/Internal/Router/List/Pulls.php b/clients/GitHub/src/Internal/Router/List/Pulls.php index bbbf8e93a09..7cfe88c2d03 100644 --- a/clients/GitHub/src/Internal/Router/List/Pulls.php +++ b/clients/GitHub/src/Internal/Router/List/Pulls.php @@ -91,7 +91,7 @@ public function listListing(array $params): iterable|WithoutBody } /** @return Observable */ - public function listReviewCommentsListing(array $params): iterable + public function listReviewCommentsForRepoListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -106,12 +106,12 @@ public function listReviewCommentsListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('pull_number', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: pull_number'); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); } - $arguments['pull_number'] = $params['pull_number']; - unset($params['pull_number']); + $arguments['sort'] = $params['sort']; + unset($params['sort']); if (array_key_exists('direction', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: direction'); } @@ -124,12 +124,6 @@ public function listReviewCommentsListing(array $params): iterable $arguments['since'] = $params['since']; unset($params['since']); - if (array_key_exists('sort', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: sort'); - } - - $arguments['sort'] = $params['sort']; - unset($params['sort']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -144,8 +138,8 @@ public function listReviewCommentsListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Pulls\ListReviewCommentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Comments()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['direction'], $arguments['since'], $arguments['sort'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Pulls\ListReviewCommentsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀Comments()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['sort'], $arguments['direction'], $arguments['since'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -153,8 +147,8 @@ public function listReviewCommentsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listCommitsListing(array $params): iterable + /** @return Observable */ + public function listReviewCommentsListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -175,6 +169,24 @@ public function listCommitsListing(array $params): iterable $arguments['pull_number'] = $params['pull_number']; unset($params['pull_number']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + 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('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -189,8 +201,8 @@ public function listCommitsListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Pulls\ListCommitsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Commits()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Pulls\ListReviewCommentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Comments()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['direction'], $arguments['since'], $arguments['sort'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -198,8 +210,8 @@ public function listCommitsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listFilesListing(array $params): iterable + /** @return Observable */ + public function listCommitsListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -234,7 +246,7 @@ public function listFilesListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Pulls\ListFilesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Files()); + $operator = new Internal\Operator\Pulls\ListCommitsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Commits()); $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -243,8 +255,8 @@ public function listFilesListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listReviewsListing(array $params): iterable + /** @return Observable */ + public function listFilesListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -279,7 +291,7 @@ public function listReviewsListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Pulls\ListReviewsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Reviews()); + $operator = new Internal\Operator\Pulls\ListFilesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Files()); $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -288,8 +300,8 @@ public function listReviewsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listReviewCommentsForRepoListing(array $params): iterable + /** @return Observable */ + public function listReviewsListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -304,24 +316,12 @@ public function listReviewCommentsForRepoListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('sort', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: sort'); - } - - $arguments['sort'] = $params['sort']; - unset($params['sort']); - if (array_key_exists('direction', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: direction'); - } - - $arguments['direction'] = $params['direction']; - unset($params['direction']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); + if (array_key_exists('pull_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pull_number'); } - $arguments['since'] = $params['since']; - unset($params['since']); + $arguments['pull_number'] = $params['pull_number']; + unset($params['pull_number']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -336,8 +336,8 @@ public function listReviewCommentsForRepoListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Pulls\ListReviewCommentsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀Comments()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['sort'], $arguments['direction'], $arguments['since'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Pulls\ListReviewsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Reviews()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['per_page'], $arguments['page'])]; yield from $items; diff --git a/clients/GitHub/src/Internal/Router/List/Reactions.php b/clients/GitHub/src/Internal/Router/List/Reactions.php index cb6a326c326..410e726cba7 100644 --- a/clients/GitHub/src/Internal/Router/List/Reactions.php +++ b/clients/GitHub/src/Internal/Router/List/Reactions.php @@ -21,27 +21,21 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri } /** @return Observable */ - public function listForCommitCommentListing(array $params): iterable + public function listForTeamDiscussionLegacyListing(array $params): iterable { $arguments = []; - if (array_key_exists('owner', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: owner'); - } - - $arguments['owner'] = $params['owner']; - unset($params['owner']); - if (array_key_exists('repo', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: repo'); + if (array_key_exists('team_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_id'); } - $arguments['repo'] = $params['repo']; - unset($params['repo']); - if (array_key_exists('comment_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: comment_id'); + $arguments['team_id'] = $params['team_id']; + unset($params['team_id']); + if (array_key_exists('discussion_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: discussion_number'); } - $arguments['comment_id'] = $params['comment_id']; - unset($params['comment_id']); + $arguments['discussion_number'] = $params['discussion_number']; + unset($params['discussion_number']); if (array_key_exists('content', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: content'); } @@ -62,8 +56,8 @@ public function listForCommitCommentListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Reactions\ListForCommitCommentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Comments🌀CommentId🌀Reactions()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Reactions\ListForTeamDiscussionLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Discussions🌀DiscussionNumber🌀Reactions()); + $items = [...$operator->call($arguments['team_id'], $arguments['discussion_number'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -72,27 +66,27 @@ public function listForCommitCommentListing(array $params): iterable } /** @return Observable */ - public function listForIssueListing(array $params): iterable + public function listForTeamDiscussionInOrgListing(array $params): iterable { $arguments = []; - if (array_key_exists('owner', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: owner'); + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); } - $arguments['owner'] = $params['owner']; - unset($params['owner']); - if (array_key_exists('repo', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: repo'); + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('team_slug', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_slug'); } - $arguments['repo'] = $params['repo']; - unset($params['repo']); - if (array_key_exists('issue_number', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: issue_number'); + $arguments['team_slug'] = $params['team_slug']; + unset($params['team_slug']); + if (array_key_exists('discussion_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: discussion_number'); } - $arguments['issue_number'] = $params['issue_number']; - unset($params['issue_number']); + $arguments['discussion_number'] = $params['discussion_number']; + unset($params['discussion_number']); if (array_key_exists('content', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: content'); } @@ -113,8 +107,8 @@ public function listForIssueListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Reactions\ListForIssueListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Reactions()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Reactions\ListForTeamDiscussionInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Discussions🌀DiscussionNumber🌀Reactions()); + $items = [...$operator->call($arguments['org'], $arguments['team_slug'], $arguments['discussion_number'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -123,7 +117,7 @@ public function listForIssueListing(array $params): iterable } /** @return Observable */ - public function listForReleaseListing(array $params): iterable + public function listForIssueCommentListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -138,12 +132,12 @@ public function listForReleaseListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('release_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: release_id'); + if (array_key_exists('comment_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: comment_id'); } - $arguments['release_id'] = $params['release_id']; - unset($params['release_id']); + $arguments['comment_id'] = $params['comment_id']; + unset($params['comment_id']); if (array_key_exists('content', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: content'); } @@ -164,8 +158,8 @@ public function listForReleaseListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Reactions\ListForReleaseListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Releases🌀ReleaseId🌀Reactions()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Reactions\ListForIssueCommentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments🌀CommentId🌀Reactions()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -174,21 +168,27 @@ public function listForReleaseListing(array $params): iterable } /** @return Observable */ - public function listForTeamDiscussionLegacyListing(array $params): iterable + public function listForPullRequestReviewCommentListing(array $params): iterable { $arguments = []; - if (array_key_exists('team_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: team_id'); + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); } - $arguments['team_id'] = $params['team_id']; - unset($params['team_id']); - if (array_key_exists('discussion_number', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: discussion_number'); + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); } - $arguments['discussion_number'] = $params['discussion_number']; - unset($params['discussion_number']); + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('comment_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: comment_id'); + } + + $arguments['comment_id'] = $params['comment_id']; + unset($params['comment_id']); if (array_key_exists('content', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: content'); } @@ -209,8 +209,8 @@ public function listForTeamDiscussionLegacyListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Reactions\ListForTeamDiscussionLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Discussions🌀DiscussionNumber🌀Reactions()); - $items = [...$operator->call($arguments['team_id'], $arguments['discussion_number'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Reactions\ListForPullRequestReviewCommentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀Comments🌀CommentId🌀Reactions()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -219,27 +219,27 @@ public function listForTeamDiscussionLegacyListing(array $params): iterable } /** @return Observable */ - public function listForTeamDiscussionInOrgListing(array $params): iterable + public function listForTeamDiscussionCommentLegacyListing(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'); + if (array_key_exists('team_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_id'); } - $arguments['team_slug'] = $params['team_slug']; - unset($params['team_slug']); + $arguments['team_id'] = $params['team_id']; + unset($params['team_id']); if (array_key_exists('discussion_number', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: discussion_number'); } $arguments['discussion_number'] = $params['discussion_number']; unset($params['discussion_number']); + if (array_key_exists('comment_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: comment_number'); + } + + $arguments['comment_number'] = $params['comment_number']; + unset($params['comment_number']); if (array_key_exists('content', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: content'); } @@ -260,8 +260,8 @@ public function listForTeamDiscussionInOrgListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Reactions\ListForTeamDiscussionInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Discussions🌀DiscussionNumber🌀Reactions()); - $items = [...$operator->call($arguments['org'], $arguments['team_slug'], $arguments['discussion_number'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Reactions\ListForTeamDiscussionCommentLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Discussions🌀DiscussionNumber🌀Comments🌀CommentNumber🌀Reactions()); + $items = [...$operator->call($arguments['team_id'], $arguments['discussion_number'], $arguments['comment_number'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -270,7 +270,7 @@ public function listForTeamDiscussionInOrgListing(array $params): iterable } /** @return Observable */ - public function listForIssueCommentListing(array $params): iterable + public function listForCommitCommentListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -311,7 +311,7 @@ public function listForIssueCommentListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Reactions\ListForIssueCommentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments🌀CommentId🌀Reactions()); + $operator = new Internal\Operator\Reactions\ListForCommitCommentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Comments🌀CommentId🌀Reactions()); $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -321,7 +321,7 @@ public function listForIssueCommentListing(array $params): iterable } /** @return Observable */ - public function listForPullRequestReviewCommentListing(array $params): iterable + public function listForIssueListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -336,12 +336,12 @@ public function listForPullRequestReviewCommentListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('comment_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: comment_id'); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); } - $arguments['comment_id'] = $params['comment_id']; - unset($params['comment_id']); + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); if (array_key_exists('content', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: content'); } @@ -362,8 +362,8 @@ public function listForPullRequestReviewCommentListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Reactions\ListForPullRequestReviewCommentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀Comments🌀CommentId🌀Reactions()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Reactions\ListForIssueListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Reactions()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -372,27 +372,27 @@ public function listForPullRequestReviewCommentListing(array $params): iterable } /** @return Observable */ - public function listForTeamDiscussionCommentLegacyListing(array $params): iterable + public function listForReleaseListing(array $params): iterable { $arguments = []; - if (array_key_exists('team_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: team_id'); + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); } - $arguments['team_id'] = $params['team_id']; - unset($params['team_id']); - if (array_key_exists('discussion_number', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: discussion_number'); + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); } - $arguments['discussion_number'] = $params['discussion_number']; - unset($params['discussion_number']); - if (array_key_exists('comment_number', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: comment_number'); + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('release_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: release_id'); } - $arguments['comment_number'] = $params['comment_number']; - unset($params['comment_number']); + $arguments['release_id'] = $params['release_id']; + unset($params['release_id']); if (array_key_exists('content', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: content'); } @@ -413,8 +413,8 @@ public function listForTeamDiscussionCommentLegacyListing(array $params): iterab unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Reactions\ListForTeamDiscussionCommentLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Discussions🌀DiscussionNumber🌀Comments🌀CommentNumber🌀Reactions()); - $items = [...$operator->call($arguments['team_id'], $arguments['discussion_number'], $arguments['comment_number'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Reactions\ListForReleaseListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Releases🌀ReleaseId🌀Reactions()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id'], $arguments['content'], $arguments['per_page'], $arguments['page'])]; yield from $items; diff --git a/clients/GitHub/src/Internal/Router/List/Repos.php b/clients/GitHub/src/Internal/Router/List/Repos.php index 9a727c8045a..14515d32bd5 100644 --- a/clients/GitHub/src/Internal/Router/List/Repos.php +++ b/clients/GitHub/src/Internal/Router/List/Repos.php @@ -970,8 +970,8 @@ public function listTeamsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listCommentsForCommitListing(array $params): iterable + /** @return Observable */ + public function listPagesBuildsListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -986,12 +986,6 @@ public function listCommentsForCommitListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('commit_sha', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: commit_sha'); - } - - $arguments['commit_sha'] = $params['commit_sha']; - unset($params['commit_sha']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -1006,8 +1000,8 @@ public function listCommentsForCommitListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Repos\ListCommentsForCommitListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits🌀CommitSha🌀Comments()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['commit_sha'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Repos\ListPagesBuildsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pages🌀Builds()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -1015,8 +1009,8 @@ public function listCommentsForCommitListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listPullRequestsAssociatedWithCommitListing(array $params): iterable + /** @return Observable */ + public function getRepoRuleSuitesListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -1031,12 +1025,30 @@ public function listPullRequestsAssociatedWithCommitListing(array $params): iter $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('commit_sha', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: commit_sha'); + if (array_key_exists('ref', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: ref'); } - $arguments['commit_sha'] = $params['commit_sha']; - unset($params['commit_sha']); + $arguments['ref'] = $params['ref']; + unset($params['ref']); + if (array_key_exists('actor_name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: actor_name'); + } + + $arguments['actor_name'] = $params['actor_name']; + unset($params['actor_name']); + if (array_key_exists('time_period', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: time_period'); + } + + $arguments['time_period'] = $params['time_period']; + unset($params['time_period']); + if (array_key_exists('rule_suite_result', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: rule_suite_result'); + } + + $arguments['rule_suite_result'] = $params['rule_suite_result']; + unset($params['rule_suite_result']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -1051,8 +1063,8 @@ public function listPullRequestsAssociatedWithCommitListing(array $params): iter unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Repos\ListPullRequestsAssociatedWithCommitListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits🌀CommitSha🌀Pulls()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['commit_sha'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Repos\GetRepoRuleSuitesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Rulesets🌀RuleSuites()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['ref'], $arguments['actor_name'], $arguments['time_period'], $arguments['rule_suite_result'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -1060,8 +1072,8 @@ public function listPullRequestsAssociatedWithCommitListing(array $params): iter } while (count($items) > 0); } - /** @return Observable|Schema\BasicError */ - public function listCommitStatusesForRefListing(array $params): iterable|BasicError + /** @return Observable */ + public function listCommentsForCommitListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -1076,12 +1088,12 @@ public function listCommitStatusesForRefListing(array $params): iterable|BasicEr $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('ref', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: ref'); + if (array_key_exists('commit_sha', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: commit_sha'); } - $arguments['ref'] = $params['ref']; - unset($params['ref']); + $arguments['commit_sha'] = $params['commit_sha']; + unset($params['commit_sha']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -1096,8 +1108,8 @@ public function listCommitStatusesForRefListing(array $params): iterable|BasicEr unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Repos\ListCommitStatusesForRefListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits🌀Ref🌀Statuses()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['ref'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Repos\ListCommentsForCommitListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits🌀CommitSha🌀Comments()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['commit_sha'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -1105,8 +1117,8 @@ public function listCommitStatusesForRefListing(array $params): iterable|BasicEr } while (count($items) > 0); } - /** @return Observable */ - public function listDeploymentStatusesListing(array $params): iterable + /** @return Observable */ + public function listPullRequestsAssociatedWithCommitListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -1121,12 +1133,12 @@ public function listDeploymentStatusesListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('deployment_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: deployment_id'); + if (array_key_exists('commit_sha', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: commit_sha'); } - $arguments['deployment_id'] = $params['deployment_id']; - unset($params['deployment_id']); + $arguments['commit_sha'] = $params['commit_sha']; + unset($params['commit_sha']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -1141,8 +1153,8 @@ public function listDeploymentStatusesListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Repos\ListDeploymentStatusesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Deployments🌀DeploymentId🌀Statuses()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['deployment_id'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Repos\ListPullRequestsAssociatedWithCommitListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits🌀CommitSha🌀Pulls()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['commit_sha'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -1150,8 +1162,8 @@ public function listDeploymentStatusesListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listReleaseAssetsListing(array $params): iterable + /** @return Observable|Schema\BasicError */ + public function listCommitStatusesForRefListing(array $params): iterable|BasicError { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -1166,12 +1178,12 @@ public function listReleaseAssetsListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('release_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: release_id'); + if (array_key_exists('ref', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: ref'); } - $arguments['release_id'] = $params['release_id']; - unset($params['release_id']); + $arguments['ref'] = $params['ref']; + unset($params['ref']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -1186,8 +1198,8 @@ public function listReleaseAssetsListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Repos\ListReleaseAssetsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Releases🌀ReleaseId🌀Assets()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Repos\ListCommitStatusesForRefListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits🌀Ref🌀Statuses()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['ref'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -1195,8 +1207,8 @@ public function listReleaseAssetsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function getBranchRulesListing(array $params): iterable + /** @return Observable */ + public function listDeploymentStatusesListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -1211,12 +1223,12 @@ public function getBranchRulesListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('branch', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: branch'); + if (array_key_exists('deployment_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: deployment_id'); } - $arguments['branch'] = $params['branch']; - unset($params['branch']); + $arguments['deployment_id'] = $params['deployment_id']; + unset($params['deployment_id']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -1231,8 +1243,8 @@ public function getBranchRulesListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Repos\GetBranchRulesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Rules🌀Branches🌀Branch()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['branch'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Repos\ListDeploymentStatusesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Deployments🌀DeploymentId🌀Statuses()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['deployment_id'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -1240,8 +1252,8 @@ public function getBranchRulesListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function listPagesBuildsListing(array $params): iterable + /** @return Observable */ + public function listReleaseAssetsListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -1256,6 +1268,12 @@ public function listPagesBuildsListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); + if (array_key_exists('release_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: release_id'); + } + + $arguments['release_id'] = $params['release_id']; + unset($params['release_id']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -1270,8 +1288,8 @@ public function listPagesBuildsListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Repos\ListPagesBuildsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pages🌀Builds()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Repos\ListReleaseAssetsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Releases🌀ReleaseId🌀Assets()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -1279,8 +1297,8 @@ public function listPagesBuildsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function getRepoRuleSuitesListing(array $params): iterable + /** @return Observable */ + public function getBranchRulesListing(array $params): iterable { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -1295,30 +1313,12 @@ public function getRepoRuleSuitesListing(array $params): iterable $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('ref', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: ref'); - } - - $arguments['ref'] = $params['ref']; - unset($params['ref']); - if (array_key_exists('actor_name', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: actor_name'); - } - - $arguments['actor_name'] = $params['actor_name']; - unset($params['actor_name']); - if (array_key_exists('time_period', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: time_period'); - } - - $arguments['time_period'] = $params['time_period']; - unset($params['time_period']); - if (array_key_exists('rule_suite_result', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: rule_suite_result'); + if (array_key_exists('branch', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: branch'); } - $arguments['rule_suite_result'] = $params['rule_suite_result']; - unset($params['rule_suite_result']); + $arguments['branch'] = $params['branch']; + unset($params['branch']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -1333,8 +1333,8 @@ public function getRepoRuleSuitesListing(array $params): iterable unset($params['page']); $arguments['page'] = 1; do { - $operator = new Internal\Operator\Repos\GetRepoRuleSuitesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Rulesets🌀RuleSuites()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['ref'], $arguments['actor_name'], $arguments['time_period'], $arguments['rule_suite_result'], $arguments['per_page'], $arguments['page'])]; + $operator = new Internal\Operator\Repos\GetBranchRulesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Rules🌀Branches🌀Branch()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['branch'], $arguments['per_page'], $arguments['page'])]; yield from $items; diff --git a/clients/GitHub/src/Internal/Router/List/Seven.php b/clients/GitHub/src/Internal/Router/List/Seven.php index 496fd87c523..c5d0c22f8bb 100644 --- a/clients/GitHub/src/Internal/Router/List/Seven.php +++ b/clients/GitHub/src/Internal/Router/List/Seven.php @@ -14,29 +14,11 @@ 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 */ + /** @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 */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError { if ($pathChunks[0] === '') { - if ($pathChunks[1] === 'enterprises') { - if ($pathChunks[2] === '{enterprise}') { - if ($pathChunks[3] === 'team') { - if ($pathChunks[4] === '{team_slug}') { - if ($pathChunks[5] === 'copilot') { - if ($pathChunks[6] === 'metrics') { - if ($call === 'LIST /enterprises/{enterprise}/team/{team_slug}/copilot/metrics') { - return $this->routers->internal🔀Router🔀List🔀Copilot()->copilotMetricsForEnterpriseTeamListing($params); - } - } elseif ($pathChunks[6] === 'usage') { - if ($call === 'LIST /enterprises/{enterprise}/team/{team_slug}/copilot/usage') { - return $this->routers->internal🔀Router🔀List🔀Copilot()->usageMetricsForEnterpriseTeamListing($params); - } - } - } - } - } - } - } elseif ($pathChunks[1] === 'orgs') { + if ($pathChunks[1] === 'orgs') { if ($pathChunks[2] === '{org}') { if ($pathChunks[3] === 'insights') { if ($pathChunks[4] === 'api') { diff --git a/clients/GitHub/src/Internal/Router/Put/Orgs.php b/clients/GitHub/src/Internal/Router/Put/Orgs.php index 046e1e77af8..97815d09b79 100644 --- a/clients/GitHub/src/Internal/Router/Put/Orgs.php +++ b/clients/GitHub/src/Internal/Router/Put/Orgs.php @@ -160,7 +160,6 @@ public function assignUserToOrgRole(array $params): WithoutBody return $operator->call($arguments['org'], $arguments['username'], $arguments['role_id']); } - /** @return */ public function createOrUpdateCustomProperty(array $params): CustomProperty { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Put/Six.php b/clients/GitHub/src/Internal/Router/Put/Six.php index af284384afe..3305f95faaf 100644 --- a/clients/GitHub/src/Internal/Router/Put/Six.php +++ b/clients/GitHub/src/Internal/Router/Put/Six.php @@ -20,6 +20,7 @@ public function __construct(private Routers $routers) { } + /** @return |Schema\CustomProperty */ public function call(string $call, array $params, array $pathChunks): WithoutBody|EmptyObject|CustomProperty|RepositoryInvitation|FileCommit|Environment|RepositoryRuleset { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Routers.php b/clients/GitHub/src/Internal/Routers.php index 02f3c354e00..f225ac10309 100644 --- a/clients/GitHub/src/Internal/Routers.php +++ b/clients/GitHub/src/Internal/Routers.php @@ -33,12 +33,12 @@ final class Routers private Internal\Router\Get\Interactions|null $internal🔀Router🔀Get🔀Interactions = null; private Internal\Router\Get\Migrations|null $internal🔀Router🔀Get🔀Migrations = null; private Internal\Router\Get\Packages|null $internal🔀Router🔀Get🔀Packages = null; - private Internal\Router\Get\Copilot|null $internal🔀Router🔀Get🔀Copilot = null; private Internal\Router\Get\Dependabot|null $internal🔀Router🔀Get🔀Dependabot = null; private Internal\Router\Get\SecretScanning|null $internal🔀Router🔀Get🔀SecretScanning = null; private Internal\Router\Get\Actions|null $internal🔀Router🔀Get🔀Actions = null; private Internal\Router\Get\CodeScanning|null $internal🔀Router🔀Get🔀CodeScanning = null; private Internal\Router\Get\CodeSecurity|null $internal🔀Router🔀Get🔀CodeSecurity = null; + private Internal\Router\Get\Copilot|null $internal🔀Router🔀Get🔀Copilot = null; private Internal\Router\Get\Pulls|null $internal🔀Router🔀Get🔀Pulls = null; private Internal\Router\Get\Billing|null $internal🔀Router🔀Get🔀Billing = null; private Internal\Router\Get\ApiInsights|null $internal🔀Router🔀Get🔀ApiInsights = null; @@ -103,14 +103,14 @@ final class Routers private Internal\Router\List\Classroom|null $internal🔀Router🔀List🔀Classroom = null; private Internal\Router\List\Projects|null $internal🔀Router🔀List🔀Projects = null; private Internal\Router\List\Licenses|null $internal🔀Router🔀List🔀Licenses = null; - private Internal\Router\List\Copilot|null $internal🔀Router🔀List🔀Copilot = null; private Internal\Router\List\CodeScanning|null $internal🔀Router🔀List🔀CodeScanning = null; + private Internal\Router\List\Copilot|null $internal🔀Router🔀List🔀Copilot = null; private Internal\Router\List\SecretScanning|null $internal🔀Router🔀List🔀SecretScanning = null; private Internal\Router\List\Pulls|null $internal🔀Router🔀List🔀Pulls = null; private Internal\Router\List\ApiInsights|null $internal🔀Router🔀List🔀ApiInsights = null; - private Internal\Router\List\Checks|null $internal🔀Router🔀List🔀Checks = null; - private Internal\Router\List\Reactions|null $internal🔀Router🔀List🔀Reactions = null; private Internal\Router\List\Dependabot|null $internal🔀Router🔀List🔀Dependabot = null; + private Internal\Router\List\Reactions|null $internal🔀Router🔀List🔀Reactions = null; + private Internal\Router\List\Checks|null $internal🔀Router🔀List🔀Checks = null; private Internal\Router\Delete\Apps|null $internal🔀Router🔀Delete🔀Apps = null; private Internal\Router\Delete\Gists|null $internal🔀Router🔀Delete🔀Gists = null; private Internal\Router\Delete\Activity|null $internal🔀Router🔀Delete🔀Activity = null; @@ -355,15 +355,6 @@ public function internal🔀Router🔀Get🔀Packages(): Internal\Router\Get\Pac return $this->internal🔀Router🔀Get🔀Packages; } - public function internal🔀Router🔀Get🔀Copilot(): Internal\Router\Get\Copilot - { - if ($this->internal🔀Router🔀Get🔀Copilot instanceof Internal\Router\Get\Copilot === false) { - $this->internal🔀Router🔀Get🔀Copilot = new Internal\Router\Get\Copilot(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); - } - - return $this->internal🔀Router🔀Get🔀Copilot; - } - public function internal🔀Router🔀Get🔀Dependabot(): Internal\Router\Get\Dependabot { if ($this->internal🔀Router🔀Get🔀Dependabot instanceof Internal\Router\Get\Dependabot === false) { @@ -409,6 +400,15 @@ public function internal🔀Router🔀Get🔀CodeSecurity(): Internal\Router\Get return $this->internal🔀Router🔀Get🔀CodeSecurity; } + public function internal🔀Router🔀Get🔀Copilot(): Internal\Router\Get\Copilot + { + if ($this->internal🔀Router🔀Get🔀Copilot instanceof Internal\Router\Get\Copilot === false) { + $this->internal🔀Router🔀Get🔀Copilot = new Internal\Router\Get\Copilot(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->internal🔀Router🔀Get🔀Copilot; + } + public function internal🔀Router🔀Get🔀Pulls(): Internal\Router\Get\Pulls { if ($this->internal🔀Router🔀Get🔀Pulls instanceof Internal\Router\Get\Pulls === false) { @@ -985,22 +985,22 @@ public function internal🔀Router🔀List🔀Licenses(): Internal\Router\List\L return $this->internal🔀Router🔀List🔀Licenses; } - public function internal🔀Router🔀List🔀Copilot(): Internal\Router\List\Copilot + public function internal🔀Router🔀List🔀CodeScanning(): Internal\Router\List\CodeScanning { - if ($this->internal🔀Router🔀List🔀Copilot instanceof Internal\Router\List\Copilot === false) { - $this->internal🔀Router🔀List🔀Copilot = new Internal\Router\List\Copilot(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + if ($this->internal🔀Router🔀List🔀CodeScanning instanceof Internal\Router\List\CodeScanning === false) { + $this->internal🔀Router🔀List🔀CodeScanning = new Internal\Router\List\CodeScanning(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); } - return $this->internal🔀Router🔀List🔀Copilot; + return $this->internal🔀Router🔀List🔀CodeScanning; } - public function internal🔀Router🔀List🔀CodeScanning(): Internal\Router\List\CodeScanning + public function internal🔀Router🔀List🔀Copilot(): Internal\Router\List\Copilot { - if ($this->internal🔀Router🔀List🔀CodeScanning instanceof Internal\Router\List\CodeScanning === false) { - $this->internal🔀Router🔀List🔀CodeScanning = new Internal\Router\List\CodeScanning(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + if ($this->internal🔀Router🔀List🔀Copilot instanceof Internal\Router\List\Copilot === false) { + $this->internal🔀Router🔀List🔀Copilot = new Internal\Router\List\Copilot(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); } - return $this->internal🔀Router🔀List🔀CodeScanning; + return $this->internal🔀Router🔀List🔀Copilot; } public function internal🔀Router🔀List🔀SecretScanning(): Internal\Router\List\SecretScanning @@ -1030,13 +1030,13 @@ public function internal🔀Router🔀List🔀ApiInsights(): Internal\Router\Lis return $this->internal🔀Router🔀List🔀ApiInsights; } - public function internal🔀Router🔀List🔀Checks(): Internal\Router\List\Checks + public function internal🔀Router🔀List🔀Dependabot(): Internal\Router\List\Dependabot { - if ($this->internal🔀Router🔀List🔀Checks instanceof Internal\Router\List\Checks === false) { - $this->internal🔀Router🔀List🔀Checks = new Internal\Router\List\Checks(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + if ($this->internal🔀Router🔀List🔀Dependabot instanceof Internal\Router\List\Dependabot === false) { + $this->internal🔀Router🔀List🔀Dependabot = new Internal\Router\List\Dependabot(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); } - return $this->internal🔀Router🔀List🔀Checks; + return $this->internal🔀Router🔀List🔀Dependabot; } public function internal🔀Router🔀List🔀Reactions(): Internal\Router\List\Reactions @@ -1048,13 +1048,13 @@ public function internal🔀Router🔀List🔀Reactions(): Internal\Router\List\ return $this->internal🔀Router🔀List🔀Reactions; } - public function internal🔀Router🔀List🔀Dependabot(): Internal\Router\List\Dependabot + public function internal🔀Router🔀List🔀Checks(): Internal\Router\List\Checks { - if ($this->internal🔀Router🔀List🔀Dependabot instanceof Internal\Router\List\Dependabot === false) { - $this->internal🔀Router🔀List🔀Dependabot = new Internal\Router\List\Dependabot(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + if ($this->internal🔀Router🔀List🔀Checks instanceof Internal\Router\List\Checks === false) { + $this->internal🔀Router🔀List🔀Checks = new Internal\Router\List\Checks(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); } - return $this->internal🔀Router🔀List🔀Dependabot; + return $this->internal🔀Router🔀List🔀Checks; } public function internal🔀Router🔀Delete🔀Apps(): Internal\Router\Delete\Apps diff --git a/clients/GitHub/src/Operation/Copilot.php b/clients/GitHub/src/Operation/Copilot.php index 73b0c2ab41e..3322f8ac29a 100644 --- a/clients/GitHub/src/Operation/Copilot.php +++ b/clients/GitHub/src/Operation/Copilot.php @@ -9,7 +9,7 @@ use ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails; use ApiClients\Client\GitHub\Schema\CopilotSeatDetails; use ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created; -use ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; final class Copilot @@ -18,60 +18,6 @@ public function __construct(private Internal\Operators $operators) { } - /** @return */ - public function listCopilotSeatsForEnterprise(string $enterprise, int $page, int $perPage): Ok - { - return $this->operators->copilot👷ListCopilotSeatsForEnterprise()->call($enterprise, $page, $perPage); - } - - /** @return Observable */ - public function copilotMetricsForEnterprise(string $enterprise, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷CopilotMetricsForEnterprise()->call($enterprise, $since, $until, $page, $perPage); - } - - /** @return Observable */ - public function copilotMetricsForEnterpriseListing(string $enterprise, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷CopilotMetricsForEnterpriseListing()->call($enterprise, $since, $until, $page, $perPage); - } - - /** @return Observable */ - public function usageMetricsForEnterprise(string $enterprise, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForEnterprise()->call($enterprise, $since, $until, $page, $perPage); - } - - /** @return Observable */ - public function usageMetricsForEnterpriseListing(string $enterprise, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForEnterpriseListing()->call($enterprise, $since, $until, $page, $perPage); - } - - /** @return Observable */ - public function copilotMetricsForEnterpriseTeam(string $enterprise, string $teamSlug, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷CopilotMetricsForEnterpriseTeam()->call($enterprise, $teamSlug, $since, $until, $page, $perPage); - } - - /** @return Observable */ - public function copilotMetricsForEnterpriseTeamListing(string $enterprise, string $teamSlug, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷CopilotMetricsForEnterpriseTeamListing()->call($enterprise, $teamSlug, $since, $until, $page, $perPage); - } - - /** @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 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); - } - /** @return */ public function getCopilotOrganizationDetails(string $org): CopilotOrganizationDetails|WithoutBody { @@ -79,7 +25,7 @@ public function getCopilotOrganizationDetails(string $org): CopilotOrganizationD } /** @return */ - public function listCopilotSeats(string $org, int $page, int $perPage): \ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok + public function listCopilotSeats(string $org, int $page, int $perPage): Ok { return $this->operators->copilot👷ListCopilotSeats()->call($org, $page, $perPage); } diff --git a/clients/GitHub/src/Operation/Orgs.php b/clients/GitHub/src/Operation/Orgs.php index b525b619030..08a4a69f6a2 100644 --- a/clients/GitHub/src/Operation/Orgs.php +++ b/clients/GitHub/src/Operation/Orgs.php @@ -438,7 +438,6 @@ public function getCustomProperty(string $org, string $customPropertyName): Cust return $this->operators->orgs👷GetCustomProperty()->call($org, $customPropertyName); } - /** @return */ public function createOrUpdateCustomProperty(string $org, string $customPropertyName, array $params): CustomProperty { return $this->operators->orgs👷CreateOrUpdateCustomProperty()->call($org, $customPropertyName, $params); diff --git a/clients/GitHub/src/Operations.php b/clients/GitHub/src/Operations.php index 5fd8553af59..16ea923d1a1 100644 --- a/clients/GitHub/src/Operations.php +++ b/clients/GitHub/src/Operations.php @@ -40,11 +40,6 @@ public function emojis(): Operation\Emojis return new Operation\Emojis($this->operators); } - public function copilot(): Operation\Copilot - { - return new Operation\Copilot($this->operators); - } - public function dependabot(): Operation\Dependabot { return new Operation\Dependabot($this->operators); @@ -120,6 +115,11 @@ public function codespaces(): Operation\Codespaces return new Operation\Codespaces($this->operators); } + public function copilot(): Operation\Copilot + { + return new Operation\Copilot($this->operators); + } + public function packages(): Operation\Packages { return new Operation\Packages($this->operators); diff --git a/clients/GitHub/src/OperationsInterface.php b/clients/GitHub/src/OperationsInterface.php index ad4db67c75c..092430263d4 100644 --- a/clients/GitHub/src/OperationsInterface.php +++ b/clients/GitHub/src/OperationsInterface.php @@ -18,8 +18,6 @@ public function codesOfConduct(): Operation\CodesOfConduct; public function emojis(): Operation\Emojis; - public function copilot(): Operation\Copilot; - public function dependabot(): Operation\Dependabot; public function secretScanning(): Operation\SecretScanning; @@ -50,6 +48,8 @@ public function codeSecurity(): Operation\CodeSecurity; public function codespaces(): Operation\Codespaces; + public function copilot(): Operation\Copilot; + public function packages(): Operation\Packages; public function apiInsights(): Operation\ApiInsights; diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 7c4ef1befd4..8a036509b1c 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -191,26 +191,6 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve(''); } - if ($call === 'GET /enterprises/{enterprise}/copilot/billing/seats') { - return $this->typeResolver->resolve(''); - } - - if ($call === 'GET /enterprises/{enterprise}/copilot/metrics') { - return $this->typeResolver->resolve('Observable'); - } - - if ($call === 'LIST /enterprises/{enterprise}/copilot/metrics') { - return $this->typeResolver->resolve('Observable'); - } - - if ($call === 'GET /enterprises/{enterprise}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - - if ($call === 'LIST /enterprises/{enterprise}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - if ($call === 'GET /enterprises/{enterprise}/dependabot/alerts') { return $this->typeResolver->resolve('Observable|WithoutBody'); } @@ -219,22 +199,6 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve('Observable'); } - if ($call === 'GET /enterprises/{enterprise}/team/{team_slug}/copilot/metrics') { - return $this->typeResolver->resolve('Observable'); - } - - if ($call === 'LIST /enterprises/{enterprise}/team/{team_slug}/copilot/metrics') { - return $this->typeResolver->resolve('Observable'); - } - - if ($call === 'GET /enterprises/{enterprise}/team/{team_slug}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - - if ($call === 'LIST /enterprises/{enterprise}/team/{team_slug}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - if ($call === 'GET /events') { return $this->typeResolver->resolve('Observable|WithoutBody'); } @@ -1364,7 +1328,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'PUT /orgs/{org}/properties/schema/{custom_property_name}') { - return $this->typeResolver->resolve(''); + return $this->typeResolver->resolve('Schema\\CustomProperty'); } if ($call === 'DELETE /orgs/{org}/properties/schema/{custom_property_name}') { diff --git a/clients/GitHub/src/Schema/AliasAbstract/Tiet8EA83230/TietFF947D7F/Tiet4FFBD303/TietF22B5455.php b/clients/GitHub/src/Schema/AliasAbstract/Tiet9EC65F6E/Tiet54735A02/Tiet6044DE21/Tiet16F5868C.php similarity index 84% rename from clients/GitHub/src/Schema/AliasAbstract/Tiet8EA83230/TietFF947D7F/Tiet4FFBD303/TietF22B5455.php rename to clients/GitHub/src/Schema/AliasAbstract/Tiet9EC65F6E/Tiet54735A02/Tiet6044DE21/Tiet16F5868C.php index e2204a2b248..9da86de6ac3 100644 --- a/clients/GitHub/src/Schema/AliasAbstract/Tiet8EA83230/TietFF947D7F/Tiet4FFBD303/TietF22B5455.php +++ b/clients/GitHub/src/Schema/AliasAbstract/Tiet9EC65F6E/Tiet54735A02/Tiet6044DE21/Tiet16F5868C.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet8EA83230\TietFF947D7F\Tiet4FFBD303; +namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet9EC65F6E\Tiet54735A02\Tiet6044DE21; -abstract readonly class TietF22B5455 +abstract readonly class Tiet16F5868C { public const SCHEMA_JSON = '{ "type": "object", @@ -35,6 +35,9 @@ }, "repository_id": { "type": "integer" + }, + "bundle_url": { + "type": "string" } } } @@ -51,7 +54,8 @@ "verificationMaterial": [], "dsseEnvelope": [] }, - "repository_id": 13 + "repository_id": 13, + "bundle_url": "generated" }, { "bundle": { @@ -59,7 +63,8 @@ "verificationMaterial": [], "dsseEnvelope": [] }, - "repository_id": 13 + "repository_id": 13, + "bundle_url": "generated" } ] }'; diff --git a/clients/GitHub/src/Schema/AliasAbstract/Tiet78CFC607/Tiet96B6C16A/TietC35E0421/TietD975B03C.php b/clients/GitHub/src/Schema/AliasAbstract/TietE2314769/Tiet2BBD4166/Tiet71BBCC18/TietF732B93A.php similarity index 83% rename from clients/GitHub/src/Schema/AliasAbstract/Tiet78CFC607/Tiet96B6C16A/TietC35E0421/TietD975B03C.php rename to clients/GitHub/src/Schema/AliasAbstract/TietE2314769/Tiet2BBD4166/Tiet71BBCC18/TietF732B93A.php index 34ba048dcd6..e3f04ea15d4 100644 --- a/clients/GitHub/src/Schema/AliasAbstract/Tiet78CFC607/Tiet96B6C16A/TietC35E0421/TietD975B03C.php +++ b/clients/GitHub/src/Schema/AliasAbstract/TietE2314769/Tiet2BBD4166/Tiet71BBCC18/TietF732B93A.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet78CFC607\Tiet96B6C16A\TietC35E0421; +namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietE2314769\Tiet2BBD4166\Tiet71BBCC18; use ApiClients\Client\GitHub\Schema; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class TietD975B03C +abstract readonly class TietF732B93A { public const SCHEMA_JSON = '{ "type": "object", @@ -33,6 +33,9 @@ }, "repository_id": { "type": "integer" + }, + "bundle_url": { + "type": "string" } } }'; @@ -44,7 +47,8 @@ "verificationMaterial": [], "dsseEnvelope": [] }, - "repository_id": 13 + "repository_id": 13, + "bundle_url": "generated" }'; /** @@ -52,7 +56,8 @@ Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ public function __construct(public Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok\Attestations\Bundle|null $bundle, #[MapFrom('repository_id')] - public int|null $repositoryId,) + public int|null $repositoryId, #[MapFrom('bundle_url')] + public string|null $bundleUrl,) { } } diff --git a/clients/GitHub/src/Schema/Orgs/CreateOrUpdateCustomProperty/Request/ApplicationJson.php b/clients/GitHub/src/Schema/CustomPropertySetPayload.php similarity index 88% rename from clients/GitHub/src/Schema/Orgs/CreateOrUpdateCustomProperty/Request/ApplicationJson.php rename to clients/GitHub/src/Schema/CustomPropertySetPayload.php index 2fe9428569a..6c1c36fce50 100644 --- a/clients/GitHub/src/Schema/Orgs/CreateOrUpdateCustomProperty/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/CustomPropertySetPayload.php @@ -2,13 +2,14 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\Orgs\CreateOrUpdateCustomProperty\Request; +namespace ApiClients\Client\GitHub\Schema; use EventSauce\ObjectHydrator\MapFrom; -final readonly class ApplicationJson +final readonly class CustomPropertySetPayload { public const SCHEMA_JSON = '{ + "title": "Custom Property Set Payload", "required": [ "value_type" ], @@ -69,10 +70,11 @@ }, "description": "An ordered list of the allowed values of the property.\\nThe property can have up to 200 allowed values." } - } + }, + "description": "Custom property set payload" }'; - public const SCHEMA_TITLE = ''; - public const SCHEMA_DESCRIPTION = ''; + public const SCHEMA_TITLE = 'Custom Property Set Payload'; + public const SCHEMA_DESCRIPTION = 'Custom property set payload'; public const SCHEMA_EXAMPLE_DATA = '{ "value_type": "single_select", "required": false, diff --git a/clients/GitHub/src/Schema/Operations/Copilot/ListCopilotSeatsForEnterprise/Response/ApplicationJson/Ok.php b/clients/GitHub/src/Schema/Operations/Copilot/ListCopilotSeatsForEnterprise/Response/ApplicationJson/Ok.php deleted file mode 100644 index 088207fed80..00000000000 --- a/clients/GitHub/src/Schema/Operations/Copilot/ListCopilotSeatsForEnterprise/Response/ApplicationJson/Ok.php +++ /dev/null @@ -1,745 +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', '/enterprises/generated/copilot/metrics?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\CopilotMetricsForEnterpriseListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/copilot/metrics?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()->copilotMetricsForEnterpriseListing('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', '/enterprises/generated/copilot/metrics?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\CopilotMetricsForEnterpriseListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/copilot/metrics?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()->copilotMetricsForEnterpriseListing('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', '/enterprises/generated/copilot/metrics?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\CopilotMetricsForEnterpriseListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/copilot/metrics?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()->copilotMetricsForEnterpriseListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_422_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(422, ['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', '/enterprises/generated/copilot/metrics?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\CopilotMetricsForEnterpriseListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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_422_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(422, ['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', '/enterprises/generated/copilot/metrics?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()->copilotMetricsForEnterpriseListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } -} diff --git a/clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeamListingTest.php b/clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeamListingTest.php deleted file mode 100644 index 0f4da695c14..00000000000 --- a/clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeamListingTest.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', '/enterprises/generated/team/generated/copilot/metrics?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\CopilotMetricsForEnterpriseTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/team/generated/copilot/metrics?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()->copilotMetricsForEnterpriseTeamListing('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', '/enterprises/generated/team/generated/copilot/metrics?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\CopilotMetricsForEnterpriseTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/team/generated/copilot/metrics?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()->copilotMetricsForEnterpriseTeamListing('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', '/enterprises/generated/team/generated/copilot/metrics?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\CopilotMetricsForEnterpriseTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/team/generated/copilot/metrics?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()->copilotMetricsForEnterpriseTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_422_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(422, ['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', '/enterprises/generated/team/generated/copilot/metrics?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\CopilotMetricsForEnterpriseTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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_422_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(422, ['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', '/enterprises/generated/team/generated/copilot/metrics?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()->copilotMetricsForEnterpriseTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } -} diff --git a/clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeamTest.php b/clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeamTest.php deleted file mode 100644 index a03e0ca8249..00000000000 --- a/clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTeamTest.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', '/enterprises/generated/team/generated/copilot/metrics?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\CopilotMetricsForEnterpriseTeam::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/team/generated/copilot/metrics?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()->copilotMetricsForEnterpriseTeam('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', '/enterprises/generated/team/generated/copilot/metrics?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\CopilotMetricsForEnterpriseTeam::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/team/generated/copilot/metrics?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()->copilotMetricsForEnterpriseTeam('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', '/enterprises/generated/team/generated/copilot/metrics?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\CopilotMetricsForEnterpriseTeam::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/team/generated/copilot/metrics?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()->copilotMetricsForEnterpriseTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_422_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(422, ['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', '/enterprises/generated/team/generated/copilot/metrics?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\CopilotMetricsForEnterpriseTeam::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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_422_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(422, ['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', '/enterprises/generated/team/generated/copilot/metrics?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()->copilotMetricsForEnterpriseTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } -} diff --git a/clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTest.php b/clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTest.php deleted file mode 100644 index 09ddff75734..00000000000 --- a/clients/GitHub/tests/Internal/Operation/Copilot/CopilotMetricsForEnterpriseTest.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', '/enterprises/generated/copilot/metrics?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\CopilotMetricsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/copilot/metrics?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()->copilotMetricsForEnterprise('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', '/enterprises/generated/copilot/metrics?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\CopilotMetricsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/copilot/metrics?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()->copilotMetricsForEnterprise('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', '/enterprises/generated/copilot/metrics?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\CopilotMetricsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/copilot/metrics?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()->copilotMetricsForEnterprise('generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_422_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(422, ['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', '/enterprises/generated/copilot/metrics?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\CopilotMetricsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_422_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(422, ['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', '/enterprises/generated/copilot/metrics?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()->copilotMetricsForEnterprise('generated', 'generated', 'generated', 1, 8); - } -} diff --git a/clients/GitHub/tests/Internal/Operation/Copilot/ListCopilotSeatsForEnterpriseTest.php b/clients/GitHub/tests/Internal/Operation/Copilot/ListCopilotSeatsForEnterpriseTest.php deleted file mode 100644 index 8e0a4dd96ec..00000000000 --- a/clients/GitHub/tests/Internal/Operation/Copilot/ListCopilotSeatsForEnterpriseTest.php +++ /dev/null @@ -1,201 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok::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', '/enterprises/generated/copilot/billing/seats?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\ListCopilotSeatsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_200_responseContentType_application_json_zero(): void - { - $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok::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', '/enterprises/generated/copilot/billing/seats?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()->listCopilotSeatsForEnterprise('generated', 1, 8); - } - - /** @test */ - public function call_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', '/enterprises/generated/copilot/billing/seats?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\ListCopilotSeatsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/copilot/billing/seats?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()->listCopilotSeatsForEnterprise('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', '/enterprises/generated/copilot/billing/seats?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\ListCopilotSeatsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/copilot/billing/seats?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()->listCopilotSeatsForEnterprise('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', '/enterprises/generated/copilot/billing/seats?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\ListCopilotSeatsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/copilot/billing/seats?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()->listCopilotSeatsForEnterprise('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', '/enterprises/generated/copilot/billing/seats?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\ListCopilotSeatsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/generated/copilot/billing/seats?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()->listCopilotSeatsForEnterprise('generated', 1, 8); - } -} diff --git a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseListingTest.php b/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseListingTest.php deleted file mode 100644 index 58689d2fce2..00000000000 --- a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseListingTest.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', '/enterprises/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\UsageMetricsForEnterpriseListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterpriseListing('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', '/enterprises/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\UsageMetricsForEnterpriseListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterpriseListing('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', '/enterprises/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\UsageMetricsForEnterpriseListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterpriseListing('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', '/enterprises/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\UsageMetricsForEnterpriseListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterpriseListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } -} diff --git a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListingTest.php b/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListingTest.php deleted file mode 100644 index aa690ae4802..00000000000 --- a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListingTest.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', '/enterprises/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\UsageMetricsForEnterpriseTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterpriseTeamListing('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', '/enterprises/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\UsageMetricsForEnterpriseTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterpriseTeamListing('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', '/enterprises/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\UsageMetricsForEnterpriseTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterpriseTeamListing('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', '/enterprises/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\UsageMetricsForEnterpriseTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterpriseTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } -} diff --git a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamTest.php b/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamTest.php deleted file mode 100644 index baaa80fda79..00000000000 --- a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamTest.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', '/enterprises/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\UsageMetricsForEnterpriseTeam::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterpriseTeam('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', '/enterprises/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\UsageMetricsForEnterpriseTeam::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterpriseTeam('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', '/enterprises/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\UsageMetricsForEnterpriseTeam::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterpriseTeam('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', '/enterprises/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\UsageMetricsForEnterpriseTeam::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterpriseTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } -} diff --git a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTest.php b/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTest.php deleted file mode 100644 index 5978669556d..00000000000 --- a/clients/GitHub/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTest.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', '/enterprises/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\UsageMetricsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterprise('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', '/enterprises/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\UsageMetricsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterprise('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', '/enterprises/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\UsageMetricsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterprise('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', '/enterprises/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\UsageMetricsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = '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', '/enterprises/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()->usageMetricsForEnterprise('generated', 'generated', 'generated', 1, 8); - } -} diff --git a/clients/GitHub/tests/Internal/Operation/Orgs/CreateOrUpdateCustomPropertyTest.php b/clients/GitHub/tests/Internal/Operation/Orgs/CreateOrUpdateCustomPropertyTest.php index f4d397c9960..31e547757c9 100644 --- a/clients/GitHub/tests/Internal/Operation/Orgs/CreateOrUpdateCustomPropertyTest.php +++ b/clients/GitHub/tests/Internal/Operation/Orgs/CreateOrUpdateCustomPropertyTest.php @@ -30,14 +30,14 @@ public function call_httpCode_200_requestContentType_application_json_responseCo $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('PUT', '/orgs/generated/properties/schema/generated', Argument::type('array'), json_encode(json_decode(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('PUT', '/orgs/generated/properties/schema/generated', Argument::type('array'), json_encode(json_decode(Schema\CustomPropertySetPayload::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\CreateOrUpdateCustomProperty::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['custom_property_name'] = 'generated'; return $data; - })(json_decode(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + })(json_decode(Schema\CustomPropertySetPayload::SCHEMA_EXAMPLE_DATA, true))); } /** @test */ @@ -49,9 +49,9 @@ public function operations_httpCode_200_requestContentType_application_json_resp $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('PUT', '/orgs/generated/properties/schema/generated', Argument::type('array'), json_encode(json_decode(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('PUT', '/orgs/generated/properties/schema/generated', Argument::type('array'), json_encode(json_decode(Schema\CustomPropertySetPayload::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->createOrUpdateCustomProperty('generated', 'generated', json_decode(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + $result = $client->operations()->orgs()->createOrUpdateCustomProperty('generated', 'generated', json_decode(Schema\CustomPropertySetPayload::SCHEMA_EXAMPLE_DATA, true)); } /** @test */ @@ -64,14 +64,14 @@ public function call_httpCode_403_requestContentType_application_json_responseCo $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('PUT', '/orgs/generated/properties/schema/generated', Argument::type('array'), json_encode(json_decode(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('PUT', '/orgs/generated/properties/schema/generated', Argument::type('array'), json_encode(json_decode(Schema\CustomPropertySetPayload::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\CreateOrUpdateCustomProperty::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['custom_property_name'] = 'generated'; return $data; - })(json_decode(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + })(json_decode(Schema\CustomPropertySetPayload::SCHEMA_EXAMPLE_DATA, true))); } /** @test */ @@ -84,9 +84,9 @@ public function operations_httpCode_403_requestContentType_application_json_resp $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('PUT', '/orgs/generated/properties/schema/generated', Argument::type('array'), json_encode(json_decode(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('PUT', '/orgs/generated/properties/schema/generated', Argument::type('array'), json_encode(json_decode(Schema\CustomPropertySetPayload::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->createOrUpdateCustomProperty('generated', 'generated', json_decode(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + $result = $client->operations()->orgs()->createOrUpdateCustomProperty('generated', 'generated', json_decode(Schema\CustomPropertySetPayload::SCHEMA_EXAMPLE_DATA, true)); } /** @test */ @@ -99,14 +99,14 @@ public function call_httpCode_404_requestContentType_application_json_responseCo $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('PUT', '/orgs/generated/properties/schema/generated', Argument::type('array'), json_encode(json_decode(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('PUT', '/orgs/generated/properties/schema/generated', Argument::type('array'), json_encode(json_decode(Schema\CustomPropertySetPayload::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\CreateOrUpdateCustomProperty::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['custom_property_name'] = 'generated'; return $data; - })(json_decode(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + })(json_decode(Schema\CustomPropertySetPayload::SCHEMA_EXAMPLE_DATA, true))); } /** @test */ @@ -119,8 +119,8 @@ public function operations_httpCode_404_requestContentType_application_json_resp $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('PUT', '/orgs/generated/properties/schema/generated', Argument::type('array'), json_encode(json_decode(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('PUT', '/orgs/generated/properties/schema/generated', Argument::type('array'), json_encode(json_decode(Schema\CustomPropertySetPayload::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->createOrUpdateCustomProperty('generated', 'generated', json_decode(Schema\Orgs\CreateOrUpdateCustomProperty\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + $result = $client->operations()->orgs()->createOrUpdateCustomProperty('generated', 'generated', json_decode(Schema\CustomPropertySetPayload::SCHEMA_EXAMPLE_DATA, true)); } } diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index 8be1cfe6681..acbe958e36d 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -54,17 +54,8 @@ function authHeader(): string assertType('Observable|WithoutBody', $client->call('GET /codes_of_conduct')); assertType('', $client->call('GET /codes_of_conduct/{key}')); assertType('', $client->call('GET /emojis')); -assertType('', $client->call('GET /enterprises/{enterprise}/copilot/billing/seats')); -assertType('Observable', $client->call('GET /enterprises/{enterprise}/copilot/metrics')); -assertType('Observable', $client->call('LIST /enterprises/{enterprise}/copilot/metrics')); -assertType('Observable', $client->call('GET /enterprises/{enterprise}/copilot/usage')); -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('Observable', $client->call('GET /enterprises/{enterprise}/team/{team_slug}/copilot/metrics')); -assertType('Observable', $client->call('LIST /enterprises/{enterprise}/team/{team_slug}/copilot/metrics')); -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')); @@ -347,7 +338,7 @@ function authHeader(): string assertType('Observable', $client->call('GET /orgs/{org}/properties/schema')); assertType('Observable', $client->call('PATCH /orgs/{org}/properties/schema')); assertType('', $client->call('GET /orgs/{org}/properties/schema/{custom_property_name}')); -assertType('', $client->call('PUT /orgs/{org}/properties/schema/{custom_property_name}')); +assertType('Schema\\CustomProperty', $client->call('PUT /orgs/{org}/properties/schema/{custom_property_name}')); assertType('', $client->call('DELETE /orgs/{org}/properties/schema/{custom_property_name}')); assertType('Observable', $client->call('GET /orgs/{org}/properties/values')); assertType('Observable', $client->call('LIST /orgs/{org}/properties/values')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index beb1a9836b0..08bc536b31f 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -1433,225 +1433,6 @@ paths: enabledForGitHubApps: true category: emojis subcategory: emojis - "/enterprises/{enterprise}/copilot/billing/seats": - get: - summary: List all Copilot seat assignments for an enterprise - description: |- - > [!NOTE] - > This endpoint is in public preview and is subject to change. - - Lists all Copilot seats currently being billed for across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription. - - Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once. - - For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array. - Each seat object contains information about the assigned user's most recent Copilot activity. Users must have - telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`. For more information about activity data, - see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)." - - Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams. - - Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. - tags: - - copilot - operationId: copilot/list-copilot-seats-for-enterprise - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-enterprise - parameters: - - "$ref": "#/components/parameters/enterprise" - - "$ref": "#/components/parameters/page" - - name: per_page - description: The number of results per page (max 100). 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: 50 - responses: - '200': - description: Response - content: - application/json: - schema: - type: object - properties: - total_seats: - type: integer - description: The total number of Copilot seats the enterprise - is being billed for. Users with access through multiple organizations - or enterprise teams are only counted once. - seats: - type: array - items: - "$ref": "#/components/schemas/copilot-seat-details" - examples: - default: - "$ref": "#/components/examples/copilot-seats-list" - headers: - Link: - "$ref": "#/components/headers/link" - '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-user-management - "/enterprises/{enterprise}/copilot/metrics": - get: - summary: Get Copilot metrics for an enterprise - description: |- - Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions. - - The response contains metrics for up to 28 days prior. 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. - - To access this endpoint, the Copilot Metrics API access policy must be enabled or set to "no policy" for the enterprise within GitHub settings. - Only enterprise owners and billing managers can view Copilot metrics for the enterprise. - - OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. - tags: - - copilot - operationId: copilot/copilot-metrics-for-enterprise - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise - parameters: - - "$ref": "#/components/parameters/enterprise" - - 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-day" - examples: - default: - "$ref": "#/components/examples/copilot-usage-metrics-for-day" - '500': - "$ref": "#/components/responses/internal_error" - '403': - "$ref": "#/components/responses/forbidden" - '404': - "$ref": "#/components/responses/not_found" - '422': - "$ref": "#/components/responses/usage_metrics_api_disabled" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: copilot - subcategory: copilot-metrics - "/enterprises/{enterprise}/copilot/usage": - get: - summary: Get a summary of Copilot usage for enterprise members - description: |- - > [!NOTE] - > This endpoint is in public preview and is subject to change. - - You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE - for all users across organizations with access to Copilot within your enterprise, 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. - - The time zone in the response is in UTC time, that means that the cutoff time for the "day" is UTC time. - - Only owners and billing managers can view Copilot usage metrics for the enterprise. - - OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. - tags: - - copilot - operationId: copilot/usage-metrics-for-enterprise - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-enterprise-members - parameters: - - "$ref": "#/components/parameters/enterprise" - - 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-enterprise" - '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 "/enterprises/{enterprise}/dependabot/alerts": get: summary: List Dependabot alerts for an enterprise @@ -1763,163 +1544,6 @@ paths: enabledForGitHubApps: false category: secret-scanning subcategory: secret-scanning - "/enterprises/{enterprise}/team/{team_slug}/copilot/metrics": - get: - summary: Get Copilot metrics for an enterprise team - description: |- - > [!NOTE] - > This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)." - - Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions. - - The response contains metrics for up to 28 days prior. 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 enterprise team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day. - - To access this endpoint, the Copilot Metrics API access policy must be enabled or set to "no policy" for the enterprise within GitHub settings. - Only owners and billing managers for the enterprise that contains the enterprise team can view Copilot metrics for the enterprise team. - - OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. - tags: - - copilot - operationId: copilot/copilot-metrics-for-enterprise-team - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise-team - parameters: - - "$ref": "#/components/parameters/enterprise" - - "$ref": "#/components/parameters/enterprise-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-day" - examples: - default: - "$ref": "#/components/examples/copilot-usage-metrics-for-day" - '500': - "$ref": "#/components/responses/internal_error" - '403': - "$ref": "#/components/responses/forbidden" - '404': - "$ref": "#/components/responses/not_found" - '422': - "$ref": "#/components/responses/usage_metrics_api_disabled" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: copilot - subcategory: copilot-metrics - "/enterprises/{enterprise}/team/{team_slug}/copilot/usage": - get: - summary: Get a summary of Copilot usage for an enterprise team - description: |- - > [!NOTE] - > This endpoint is in public preview and is subject to change. This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)." - - 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 an enterprise 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 enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day. - - Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team. - - OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. - tags: - - copilot - operationId: copilot/usage-metrics-for-enterprise-team - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-an-enterprise-team - parameters: - - "$ref": "#/components/parameters/enterprise" - - "$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 "/events": get: summary: List public events @@ -6762,6 +6386,8 @@ paths: Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. repository_id: type: integer + bundle_url: + type: string examples: default: "$ref": "#/components/examples/list-attestations" @@ -13106,50 +12732,7 @@ paths: content: application/json: schema: - type: object - properties: - value_type: - type: string - enum: - - string - - single_select - - multi_select - - true_false - description: The type of the value for the property - examples: - - single_select - required: - type: boolean - description: Whether the property is required. - default_value: - oneOf: - - type: string - - type: array - items: - type: string - description: Default value of the property - type: - - 'null' - - string - - array - description: - type: - - string - - 'null' - description: Short description of the property - allowed_values: - type: - - array - - 'null' - items: - type: string - maxLength: 75 - maxItems: 200 - description: |- - An ordered list of the allowed values of the property. - The property can have up to 200 allowed values. - required: - - value_type + "$ref": "#/components/schemas/custom-property-set-payload" examples: default: value: @@ -13785,6 +13368,7 @@ paths: - branch - tag - push + - repository default: branch enforcement: "$ref": "#/components/schemas/repository-rule-enforcement" @@ -14001,6 +13585,7 @@ paths: - branch - tag - push + - repository enforcement: "$ref": "#/components/schemas/repository-rule-enforcement" bypass_actors: @@ -20879,6 +20464,8 @@ paths: Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. repository_id: type: integer + bundle_url: + type: string examples: default: "$ref": "#/components/examples/list-attestations" @@ -47940,6 +47527,8 @@ paths: "$ref": "#/components/schemas/sigstore-bundle-0" repository_id: type: integer + bundle_url: + type: string examples: default: value: @@ -68925,720 +68514,6 @@ components: - html_url - key - name - organization-simple: - title: Organization Simple - description: A GitHub organization. - type: object - properties: - login: - type: string - examples: - - github - id: - type: integer - examples: - - 1 - node_id: - type: string - examples: - - MDEyOk9yZ2FuaXphdGlvbjE= - url: - type: string - format: uri - examples: - - https://api.github.com/orgs/github - repos_url: - type: string - format: uri - examples: - - https://api.github.com/orgs/github/repos - events_url: - type: string - format: uri - examples: - - https://api.github.com/orgs/github/events - hooks_url: - type: string - examples: - - https://api.github.com/orgs/github/hooks - issues_url: - type: string - examples: - - https://api.github.com/orgs/github/issues - members_url: - type: string - examples: - - https://api.github.com/orgs/github/members{/member} - public_members_url: - type: string - examples: - - https://api.github.com/orgs/github/public_members{/member} - avatar_url: - type: string - examples: - - https://github.com/images/error/octocat_happy.gif - description: - type: - - string - - 'null' - examples: - - A great organization - required: - - login - - url - - id - - node_id - - repos_url - - events_url - - hooks_url - - issues_url - - members_url - - public_members_url - - avatar_url - - description - team-simple: - title: Team Simple - description: Groups of organization members that gives permissions on specified - repositories. - type: object - properties: - id: - description: Unique identifier of the team - type: integer - examples: - - 1 - node_id: - type: string - examples: - - MDQ6VGVhbTE= - url: - description: URL for the team - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/1 - members_url: - type: string - examples: - - https://api.github.com/organizations/1/team/1/members{/member} - name: - description: Name of the team - type: string - examples: - - Justice League - description: - description: Description of the team - type: - - string - - 'null' - examples: - - A great team. - permission: - description: Permission that the team will have for its repositories - type: string - examples: - - admin - privacy: - description: The level of privacy this team should have - type: string - examples: - - closed - notification_setting: - description: The notification setting the team has set - type: string - examples: - - notifications_enabled - html_url: - type: string - format: uri - examples: - - https://github.com/orgs/rails/teams/core - repositories_url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/1/repos - slug: - type: string - examples: - - justice-league - ldap_dn: - description: Distinguished Name (DN) that team maps to within LDAP environment - type: string - examples: - - uid=example,ou=users,dc=github,dc=com - required: - - id - - node_id - - url - - members_url - - name - - description - - permission - - html_url - - repositories_url - - slug - team: - title: Team - description: Groups of organization members that gives permissions on specified - repositories. - type: object - properties: - id: - type: integer - node_id: - type: string - name: - type: string - slug: - type: string - description: - type: - - string - - 'null' - privacy: - type: string - notification_setting: - type: string - permission: - type: string - permissions: - type: object - properties: - pull: - type: boolean - triage: - type: boolean - push: - type: boolean - maintain: - type: boolean - admin: - type: boolean - required: - - pull - - triage - - push - - maintain - - admin - url: - type: string - format: uri - html_url: - type: string - format: uri - examples: - - https://github.com/orgs/rails/teams/core - members_url: - type: string - repositories_url: - type: string - format: uri - parent: - anyOf: - - type: 'null' - - "$ref": "#/components/schemas/team-simple" - required: - - id - - node_id - - url - - members_url - - name - - description - - permission - - html_url - - repositories_url - - slug - - parent - enterprise-team: - title: Enterprise Team - description: Group of enterprise owners and/or members - type: object - properties: - id: - type: integer - format: int64 - name: - type: string - slug: - type: string - url: - type: string - format: uri - sync_to_organizations: - type: string - examples: - - disabled | all - group_id: - type: - - string - - 'null' - examples: - - 62ab9291-fae2-468e-974b-7e45096d5021 - html_url: - type: string - format: uri - examples: - - https://github.com/enterprises/dc/teams/justice-league - members_url: - type: string - created_at: - type: string - format: date-time - updated_at: - type: string - format: date-time - required: - - id - - url - - members_url - - sync_to_organizations - - name - - html_url - - slug - - created_at - - updated_at - copilot-seat-details: - title: Copilot Business Seat Detail - description: Information about a Copilot Business seat assignment for a user, - team, or organization. - type: object - properties: - assignee: - "$ref": "#/components/schemas/simple-user" - organization: - anyOf: - - type: 'null' - - "$ref": "#/components/schemas/organization-simple" - assigning_team: - description: The team through which the assignee is granted access to GitHub - Copilot, if applicable. - oneOf: - - "$ref": "#/components/schemas/team" - - "$ref": "#/components/schemas/enterprise-team" - type: - - 'null' - - object - pending_cancellation_date: - type: - - string - - 'null' - format: date - description: The pending cancellation date for the seat, in `YYYY-MM-DD` - format. This will be null unless the assignee's Copilot access has been - canceled during the current billing cycle. If the seat has been cancelled, - this corresponds to the start of the organization's next billing cycle. - last_activity_at: - type: - - string - - 'null' - format: date-time - description: Timestamp of user's last GitHub Copilot activity, in ISO 8601 - format. - last_activity_editor: - type: - - string - - 'null' - description: Last editor that was used by the user for a GitHub Copilot - completion. - created_at: - type: string - format: date-time - description: Timestamp of when the assignee was last granted access to GitHub - Copilot, in ISO 8601 format. - updated_at: - type: string - format: date-time - deprecated: true - description: "**Closing down notice:** This field is no longer relevant - and is closing down. Use the `created_at` field to determine when the - assignee was last granted access to GitHub Copilot. Timestamp of when - the assignee's GitHub Copilot access was last updated, in ISO 8601 format." - plan_type: - type: string - description: The Copilot plan of the organization, or the parent enterprise, - when applicable. - enum: - - business - - enterprise - - unknown - required: - - assignee - - created_at - additionalProperties: false - copilot-ide-code-completions: - type: - - object - - 'null' - description: Usage metrics for Copilot editor code completions in the IDE. - additionalProperties: true - properties: - total_engaged_users: - type: integer - description: Number of users who accepted at least one Copilot code suggestion, - across all active editors. Includes both full and partial acceptances. - languages: - type: array - description: Code completion metrics for active languages. - items: - type: object - description: Usage metrics for a given language for the given editor for - Copilot code completions. - properties: - name: - type: string - description: Name of the language used for Copilot code completion - suggestions. - total_engaged_users: - type: integer - description: Number of users who accepted at least one Copilot code - completion suggestion for the given language. Includes both full - and partial acceptances. - editors: - type: array - items: - type: object - description: Copilot code completion metrics for active editors. - additionalProperties: true - properties: - name: - type: string - description: Name of the given editor. - total_engaged_users: - type: integer - description: Number of users who accepted at least one Copilot code - completion suggestion for the given editor. Includes both full and - partial acceptances. - models: - type: array - description: List of model metrics for custom models and the default - model. - items: - type: object - properties: - name: - type: string - description: Name of the model used for Copilot code completion - suggestions. If the default model is used will appear as 'default'. - is_custom_model: - type: boolean - description: Indicates whether a model is custom or default. - custom_model_training_date: - type: - - string - - 'null' - description: The training date for the custom model. - total_engaged_users: - type: integer - description: Number of users who accepted at least one Copilot - code completion suggestion for the given editor, for the given - language and model. Includes both full and partial acceptances. - languages: - type: array - description: Code completion metrics for active languages, for - the given editor. - items: - type: object - description: Usage metrics for a given language for the given - editor for Copilot code completions. - properties: - name: - type: string - description: Name of the language used for Copilot code - completion suggestions, for the given editor. - total_engaged_users: - type: integer - description: Number of users who accepted at least one - Copilot code completion suggestion for the given editor, - for the given language. Includes both full and partial - acceptances. - total_code_suggestions: - type: integer - description: The number of Copilot code suggestions generated - for the given editor, for the given language. - total_code_acceptances: - type: integer - description: The number of Copilot code suggestions accepted - for the given editor, for the given language. Includes - both full and partial acceptances. - total_code_lines_suggested: - type: integer - description: The number of lines of code suggested by - Copilot code completions for the given editor, for the - given language. - total_code_lines_accepted: - type: integer - description: The number of lines of code accepted from - Copilot code suggestions for the given editor, for the - given language. - copilot-ide-chat: - type: - - object - - 'null' - description: Usage metrics for Copilot Chat in the IDE. - additionalProperties: true - properties: - total_engaged_users: - type: integer - description: Total number of users who prompted Copilot Chat in the IDE. - editors: - type: array - items: - type: object - description: Copilot Chat metrics, for active editors. - properties: - name: - type: string - description: Name of the given editor. - total_engaged_users: - type: integer - description: The number of users who prompted Copilot Chat in the - specified editor. - models: - type: array - description: List of model metrics for custom models and the default - model. - items: - type: object - properties: - name: - type: string - description: Name of the model used for Copilot code completion - suggestions. If the default model is used will appear as 'default'. - is_custom_model: - type: boolean - description: Indicates whether a model is custom or default. - custom_model_training_date: - type: - - string - - 'null' - description: The training date for the custom model. - total_engaged_users: - type: integer - description: The number of users who prompted Copilot Chat in - the given editor and model. - total_chats: - type: integer - description: The total number of chats initiated by users in - the given editor and model. - total_chat_insertion_events: - type: integer - description: The number of times users accepted a code suggestion - from Copilot Chat using the 'Insert Code' UI element, for - the given editor. - total_chat_copy_events: - type: integer - description: The number of times users copied a code suggestion - from Copilot Chat using the keyboard, or the 'Copy' UI element, - for the given editor. - copilot-dotcom-chat: - type: - - object - - 'null' - description: Usage metrics for Copilot Chat in github.com - additionalProperties: true - properties: - total_engaged_users: - type: integer - description: Total number of users who prompted Copilot Chat on github.com - at least once. - models: - type: array - description: List of model metrics for a custom models and the default model. - items: - type: object - properties: - name: - type: string - description: Name of the model used for Copilot code completion suggestions. - If the default model is used will appear as 'default'. - is_custom_model: - type: boolean - description: Indicates whether a model is custom or default. - custom_model_training_date: - type: - - string - - 'null' - description: The training date for the custom model (if applicable). - total_engaged_users: - type: integer - description: Total number of users who prompted Copilot Chat on github.com - at least once for each model. - total_chats: - type: integer - description: Total number of chats initiated by users on github.com. - copilot-dotcom-pull-requests: - type: - - object - - 'null' - description: Usage metrics for Copilot for pull requests. - additionalProperties: true - properties: - total_engaged_users: - type: integer - description: The number of users who used Copilot for Pull Requests on github.com - to generate a pull request summary at least once. - repositories: - type: array - description: Repositories in which users used Copilot for Pull Requests - to generate pull request summaries - items: - type: object - properties: - name: - type: string - description: Repository name - total_engaged_users: - type: integer - description: The number of users who generated pull request summaries - using Copilot for Pull Requests in the given repository. - models: - type: array - description: List of model metrics for custom models and the default - model. - items: - type: object - properties: - name: - type: string - description: Name of the model used for Copilot code completion - suggestions. If the default model is used will appear as 'default'. - is_custom_model: - type: boolean - description: Indicates whether a model is custom or default. - custom_model_training_date: - type: - - string - - 'null' - description: The training date for the custom model. - total_pr_summaries_created: - type: integer - description: The number of pull request summaries generated - using Copilot for Pull Requests in the given repository. - total_engaged_users: - type: integer - description: The number of users who generated pull request - summaries using Copilot for Pull Requests in the given repository - and model. - copilot-usage-metrics-day: - title: Copilot Usage Metrics - description: Copilot usage metrics for a given day. - type: object - properties: - date: - type: string - format: date - description: The date for which the usage metrics are aggregated, in `YYYY-MM-DD` - format. - total_active_users: - type: integer - description: The total number of Copilot users with activity belonging to - any Copilot feature, globally, for the given day. Includes passive activity - such as receiving a code suggestion, as well as engagement activity such - as accepting a code suggestion or prompting chat. Does not include authentication - events. Is not limited to the individual features detailed on the endpoint. - total_engaged_users: - type: integer - description: The total number of Copilot users who engaged with any Copilot - feature, for the given day. Examples include but are not limited to accepting - a code suggestion, prompting Copilot chat, or triggering a PR Summary. - Does not include authentication events. Is not limited to the individual - features detailed on the endpoint. - copilot_ide_code_completions: - "$ref": "#/components/schemas/copilot-ide-code-completions" - copilot_ide_chat: - "$ref": "#/components/schemas/copilot-ide-chat" - copilot_dotcom_chat: - "$ref": "#/components/schemas/copilot-dotcom-chat" - copilot_dotcom_pull_requests: - "$ref": "#/components/schemas/copilot-dotcom-pull-requests" - 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 alert-number: type: integer description: The security alert number. @@ -70403,6 +69278,11 @@ components: anyOf: - type: 'null' - "$ref": "#/components/schemas/simple-user" + push_protection_bypass_request_reviewer_comment: + type: + - string + - 'null' + description: An optional comment when reviewing a push protection bypass. push_protection_bypass_request_comment: type: - string @@ -72644,6 +71524,77 @@ components: - reason - url - subscribed + organization-simple: + title: Organization Simple + description: A GitHub organization. + type: object + properties: + login: + type: string + examples: + - github + id: + type: integer + examples: + - 1 + node_id: + type: string + examples: + - MDEyOk9yZ2FuaXphdGlvbjE= + url: + type: string + format: uri + examples: + - https://api.github.com/orgs/github + repos_url: + type: string + format: uri + examples: + - https://api.github.com/orgs/github/repos + events_url: + type: string + format: uri + examples: + - https://api.github.com/orgs/github/events + hooks_url: + type: string + examples: + - https://api.github.com/orgs/github/hooks + issues_url: + type: string + examples: + - https://api.github.com/orgs/github/issues + members_url: + type: string + examples: + - https://api.github.com/orgs/github/members{/member} + public_members_url: + type: string + examples: + - https://api.github.com/orgs/github/public_members{/member} + avatar_url: + type: string + examples: + - https://github.com/images/error/octocat_happy.gif + description: + type: + - string + - 'null' + examples: + - A great organization + required: + - login + - url + - id + - node_id + - repos_url + - events_url + - hooks_url + - issues_url + - members_url + - public_members_url + - avatar_url + - description billing-usage-report: type: object properties: @@ -74456,6 +73407,649 @@ components: - public_code_suggestions - seat_management_setting additionalProperties: true + team-simple: + title: Team Simple + description: Groups of organization members that gives permissions on specified + repositories. + type: object + properties: + id: + description: Unique identifier of the team + type: integer + examples: + - 1 + node_id: + type: string + examples: + - MDQ6VGVhbTE= + url: + description: URL for the team + type: string + format: uri + examples: + - https://api.github.com/organizations/1/team/1 + members_url: + type: string + examples: + - https://api.github.com/organizations/1/team/1/members{/member} + name: + description: Name of the team + type: string + examples: + - Justice League + description: + description: Description of the team + type: + - string + - 'null' + examples: + - A great team. + permission: + description: Permission that the team will have for its repositories + type: string + examples: + - admin + privacy: + description: The level of privacy this team should have + type: string + examples: + - closed + notification_setting: + description: The notification setting the team has set + type: string + examples: + - notifications_enabled + html_url: + type: string + format: uri + examples: + - https://github.com/orgs/rails/teams/core + repositories_url: + type: string + format: uri + examples: + - https://api.github.com/organizations/1/team/1/repos + slug: + type: string + examples: + - justice-league + ldap_dn: + description: Distinguished Name (DN) that team maps to within LDAP environment + type: string + examples: + - uid=example,ou=users,dc=github,dc=com + required: + - id + - node_id + - url + - members_url + - name + - description + - permission + - html_url + - repositories_url + - slug + team: + title: Team + description: Groups of organization members that gives permissions on specified + repositories. + type: object + properties: + id: + type: integer + node_id: + type: string + name: + type: string + slug: + type: string + description: + type: + - string + - 'null' + privacy: + type: string + notification_setting: + type: string + permission: + type: string + permissions: + type: object + properties: + pull: + type: boolean + triage: + type: boolean + push: + type: boolean + maintain: + type: boolean + admin: + type: boolean + required: + - pull + - triage + - push + - maintain + - admin + url: + type: string + format: uri + html_url: + type: string + format: uri + examples: + - https://github.com/orgs/rails/teams/core + members_url: + type: string + repositories_url: + type: string + format: uri + parent: + anyOf: + - type: 'null' + - "$ref": "#/components/schemas/team-simple" + required: + - id + - node_id + - url + - members_url + - name + - description + - permission + - html_url + - repositories_url + - slug + - parent + enterprise-team: + title: Enterprise Team + description: Group of enterprise owners and/or members + type: object + properties: + id: + type: integer + format: int64 + name: + type: string + slug: + type: string + url: + type: string + format: uri + sync_to_organizations: + type: string + examples: + - disabled | all + group_id: + type: + - string + - 'null' + examples: + - 62ab9291-fae2-468e-974b-7e45096d5021 + html_url: + type: string + format: uri + examples: + - https://github.com/enterprises/dc/teams/justice-league + members_url: + type: string + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + required: + - id + - url + - members_url + - sync_to_organizations + - name + - html_url + - slug + - created_at + - updated_at + copilot-seat-details: + title: Copilot Business Seat Detail + description: Information about a Copilot Business seat assignment for a user, + team, or organization. + type: object + properties: + assignee: + "$ref": "#/components/schemas/simple-user" + organization: + anyOf: + - type: 'null' + - "$ref": "#/components/schemas/organization-simple" + assigning_team: + description: The team through which the assignee is granted access to GitHub + Copilot, if applicable. + oneOf: + - "$ref": "#/components/schemas/team" + - "$ref": "#/components/schemas/enterprise-team" + type: + - 'null' + - object + pending_cancellation_date: + type: + - string + - 'null' + format: date + description: The pending cancellation date for the seat, in `YYYY-MM-DD` + format. This will be null unless the assignee's Copilot access has been + canceled during the current billing cycle. If the seat has been cancelled, + this corresponds to the start of the organization's next billing cycle. + last_activity_at: + type: + - string + - 'null' + format: date-time + description: Timestamp of user's last GitHub Copilot activity, in ISO 8601 + format. + last_activity_editor: + type: + - string + - 'null' + description: Last editor that was used by the user for a GitHub Copilot + completion. + created_at: + type: string + format: date-time + description: Timestamp of when the assignee was last granted access to GitHub + Copilot, in ISO 8601 format. + updated_at: + type: string + format: date-time + deprecated: true + description: "**Closing down notice:** This field is no longer relevant + and is closing down. Use the `created_at` field to determine when the + assignee was last granted access to GitHub Copilot. Timestamp of when + the assignee's GitHub Copilot access was last updated, in ISO 8601 format." + plan_type: + type: string + description: The Copilot plan of the organization, or the parent enterprise, + when applicable. + enum: + - business + - enterprise + - unknown + required: + - assignee + - created_at + additionalProperties: false + copilot-ide-code-completions: + type: + - object + - 'null' + description: Usage metrics for Copilot editor code completions in the IDE. + additionalProperties: true + properties: + total_engaged_users: + type: integer + description: Number of users who accepted at least one Copilot code suggestion, + across all active editors. Includes both full and partial acceptances. + languages: + type: array + description: Code completion metrics for active languages. + items: + type: object + description: Usage metrics for a given language for the given editor for + Copilot code completions. + properties: + name: + type: string + description: Name of the language used for Copilot code completion + suggestions. + total_engaged_users: + type: integer + description: Number of users who accepted at least one Copilot code + completion suggestion for the given language. Includes both full + and partial acceptances. + editors: + type: array + items: + type: object + description: Copilot code completion metrics for active editors. + additionalProperties: true + properties: + name: + type: string + description: Name of the given editor. + total_engaged_users: + type: integer + description: Number of users who accepted at least one Copilot code + completion suggestion for the given editor. Includes both full and + partial acceptances. + models: + type: array + description: List of model metrics for custom models and the default + model. + items: + type: object + properties: + name: + type: string + description: Name of the model used for Copilot code completion + suggestions. If the default model is used will appear as 'default'. + is_custom_model: + type: boolean + description: Indicates whether a model is custom or default. + custom_model_training_date: + type: + - string + - 'null' + description: The training date for the custom model. + total_engaged_users: + type: integer + description: Number of users who accepted at least one Copilot + code completion suggestion for the given editor, for the given + language and model. Includes both full and partial acceptances. + languages: + type: array + description: Code completion metrics for active languages, for + the given editor. + items: + type: object + description: Usage metrics for a given language for the given + editor for Copilot code completions. + properties: + name: + type: string + description: Name of the language used for Copilot code + completion suggestions, for the given editor. + total_engaged_users: + type: integer + description: Number of users who accepted at least one + Copilot code completion suggestion for the given editor, + for the given language. Includes both full and partial + acceptances. + total_code_suggestions: + type: integer + description: The number of Copilot code suggestions generated + for the given editor, for the given language. + total_code_acceptances: + type: integer + description: The number of Copilot code suggestions accepted + for the given editor, for the given language. Includes + both full and partial acceptances. + total_code_lines_suggested: + type: integer + description: The number of lines of code suggested by + Copilot code completions for the given editor, for the + given language. + total_code_lines_accepted: + type: integer + description: The number of lines of code accepted from + Copilot code suggestions for the given editor, for the + given language. + copilot-ide-chat: + type: + - object + - 'null' + description: Usage metrics for Copilot Chat in the IDE. + additionalProperties: true + properties: + total_engaged_users: + type: integer + description: Total number of users who prompted Copilot Chat in the IDE. + editors: + type: array + items: + type: object + description: Copilot Chat metrics, for active editors. + properties: + name: + type: string + description: Name of the given editor. + total_engaged_users: + type: integer + description: The number of users who prompted Copilot Chat in the + specified editor. + models: + type: array + description: List of model metrics for custom models and the default + model. + items: + type: object + properties: + name: + type: string + description: Name of the model used for Copilot code completion + suggestions. If the default model is used will appear as 'default'. + is_custom_model: + type: boolean + description: Indicates whether a model is custom or default. + custom_model_training_date: + type: + - string + - 'null' + description: The training date for the custom model. + total_engaged_users: + type: integer + description: The number of users who prompted Copilot Chat in + the given editor and model. + total_chats: + type: integer + description: The total number of chats initiated by users in + the given editor and model. + total_chat_insertion_events: + type: integer + description: The number of times users accepted a code suggestion + from Copilot Chat using the 'Insert Code' UI element, for + the given editor. + total_chat_copy_events: + type: integer + description: The number of times users copied a code suggestion + from Copilot Chat using the keyboard, or the 'Copy' UI element, + for the given editor. + copilot-dotcom-chat: + type: + - object + - 'null' + description: Usage metrics for Copilot Chat in github.com + additionalProperties: true + properties: + total_engaged_users: + type: integer + description: Total number of users who prompted Copilot Chat on github.com + at least once. + models: + type: array + description: List of model metrics for a custom models and the default model. + items: + type: object + properties: + name: + type: string + description: Name of the model used for Copilot code completion suggestions. + If the default model is used will appear as 'default'. + is_custom_model: + type: boolean + description: Indicates whether a model is custom or default. + custom_model_training_date: + type: + - string + - 'null' + description: The training date for the custom model (if applicable). + total_engaged_users: + type: integer + description: Total number of users who prompted Copilot Chat on github.com + at least once for each model. + total_chats: + type: integer + description: Total number of chats initiated by users on github.com. + copilot-dotcom-pull-requests: + type: + - object + - 'null' + description: Usage metrics for Copilot for pull requests. + additionalProperties: true + properties: + total_engaged_users: + type: integer + description: The number of users who used Copilot for Pull Requests on github.com + to generate a pull request summary at least once. + repositories: + type: array + description: Repositories in which users used Copilot for Pull Requests + to generate pull request summaries + items: + type: object + properties: + name: + type: string + description: Repository name + total_engaged_users: + type: integer + description: The number of users who generated pull request summaries + using Copilot for Pull Requests in the given repository. + models: + type: array + description: List of model metrics for custom models and the default + model. + items: + type: object + properties: + name: + type: string + description: Name of the model used for Copilot code completion + suggestions. If the default model is used will appear as 'default'. + is_custom_model: + type: boolean + description: Indicates whether a model is custom or default. + custom_model_training_date: + type: + - string + - 'null' + description: The training date for the custom model. + total_pr_summaries_created: + type: integer + description: The number of pull request summaries generated + using Copilot for Pull Requests in the given repository. + total_engaged_users: + type: integer + description: The number of users who generated pull request + summaries using Copilot for Pull Requests in the given repository + and model. + copilot-usage-metrics-day: + title: Copilot Usage Metrics + description: Copilot usage metrics for a given day. + type: object + properties: + date: + type: string + format: date + description: The date for which the usage metrics are aggregated, in `YYYY-MM-DD` + format. + total_active_users: + type: integer + description: The total number of Copilot users with activity belonging to + any Copilot feature, globally, for the given day. Includes passive activity + such as receiving a code suggestion, as well as engagement activity such + as accepting a code suggestion or prompting chat. Does not include authentication + events. Is not limited to the individual features detailed on the endpoint. + total_engaged_users: + type: integer + description: The total number of Copilot users who engaged with any Copilot + feature, for the given day. Examples include but are not limited to accepting + a code suggestion, prompting Copilot chat, or triggering a PR Summary. + Does not include authentication events. Is not limited to the individual + features detailed on the endpoint. + copilot_ide_code_completions: + "$ref": "#/components/schemas/copilot-ide-code-completions" + copilot_ide_chat: + "$ref": "#/components/schemas/copilot-ide-chat" + copilot_dotcom_chat: + "$ref": "#/components/schemas/copilot-dotcom-chat" + copilot_dotcom_pull_requests: + "$ref": "#/components/schemas/copilot-dotcom-pull-requests" + 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. @@ -75731,6 +75325,53 @@ components: required: - property_name - value_type + custom-property-set-payload: + title: Custom Property Set Payload + description: Custom property set payload + type: object + properties: + value_type: + type: string + enum: + - string + - single_select + - multi_select + - true_false + description: The type of the value for the property + examples: + - single_select + required: + type: boolean + description: Whether the property is required. + default_value: + oneOf: + - type: string + - type: array + items: + type: string + description: Default value of the property + type: + - 'null' + - string + - array + description: + type: + - string + - 'null' + description: Short description of the property + allowed_values: + type: + - array + - 'null' + items: + type: string + maxLength: 75 + maxItems: 200 + description: |- + An ordered list of the allowed values of the property. + The property can have up to 200 allowed values. + required: + - value_type custom-property-value: title: Custom Property Value description: Custom property name and associated value @@ -76521,6 +76162,7 @@ components: Conditions for an organization ruleset. The branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties. The push rulesets conditions object does not require the `ref_name` property. + For repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`. oneOf: - type: object title: repository_name_and_ref_name @@ -76738,6 +76380,13 @@ components: parameters: type: object properties: + allowed_merge_methods: + type: array + description: When merging pull requests, you can allow any combination + of merge commits, squashing, or rebasing. At least one option must + be enabled. + items: + type: string dismiss_stale_reviews_on_push: type: boolean description: New, reviewable commits pushed will dismiss previous pull @@ -77243,12 +76892,14 @@ components: - branch - tag - push + - repository source_type: type: string description: The type of the source of the ruleset enum: - Repository - Organization + - Enterprise source: type: string description: The name of the source @@ -79267,6 +78918,8 @@ components: "$ref": "#/components/schemas/rate-limit" dependency_snapshots: "$ref": "#/components/schemas/rate-limit" + code_scanning_autofix: + "$ref": "#/components/schemas/rate-limit" required: - core - search @@ -89329,6 +88982,11 @@ components: anyOf: - type: 'null' - "$ref": "#/components/schemas/simple-user" + push_protection_bypass_request_reviewer_comment: + type: + - string + - 'null' + description: An optional comment when reviewing a push protection bypass. push_protection_bypass_request_comment: type: - string @@ -101909,6 +101567,11 @@ components: anyOf: - type: 'null' - "$ref": "#/components/schemas/simple-user" + push_protection_bypass_request_reviewer_comment: + type: + - string + - 'null' + description: An optional comment when reviewing a push protection bypass. push_protection_bypass_request_comment: type: - string @@ -202202,236 +201865,6 @@ components: zombie_man: https://github.githubassets.com/images/icons/emoji/unicode/1f9df-2642.png?v8 zombie_woman: https://github.githubassets.com/images/icons/emoji/unicode/1f9df-2640.png?v8 zzz: https://github.githubassets.com/images/icons/emoji/unicode/1f4a4.png?v8 - copilot-seats-list: - value: - total_seats: 2 - seats: - - created_at: '2021-08-03T18:00:00-06:00' - updated_at: '2021-09-23T15:00:00-06:00' - pending_cancellation_date: - last_activity_at: '2021-10-14T00:53:32-06:00' - last_activity_editor: vscode/1.77.3/copilot/1.86.82 - plan_type: business - assignee: - login: octocat - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octocat_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octocat - html_url: https://github.com/octocat - followers_url: https://api.github.com/users/octocat/followers - following_url: https://api.github.com/users/octocat/following{/other_user} - gists_url: https://api.github.com/users/octocat/gists{/gist_id} - starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octocat/subscriptions - organizations_url: https://api.github.com/users/octocat/orgs - repos_url: https://api.github.com/users/octocat/repos - events_url: https://api.github.com/users/octocat/events{/privacy} - received_events_url: https://api.github.com/users/octocat/received_events - type: User - site_admin: false - assigning_team: - id: 1 - node_id: MDQ6VGVhbTE= - url: https://api.github.com/teams/1 - html_url: https://github.com/orgs/github/teams/justice-league - name: Justice League - slug: justice-league - description: A great team. - privacy: closed - notification_setting: notifications_enabled - permission: admin - members_url: https://api.github.com/teams/1/members{/member} - repositories_url: https://api.github.com/teams/1/repos - parent: - - created_at: '2021-09-23T18:00:00-06:00' - updated_at: '2021-09-23T15:00:00-06:00' - pending_cancellation_date: '2021-11-01' - last_activity_at: '2021-10-13T00:53:32-06:00' - last_activity_editor: vscode/1.77.3/copilot/1.86.82 - assignee: - login: octokitten - id: 1 - node_id: MDQ76VNlcjE= - avatar_url: https://github.com/images/error/octokitten_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octokitten - html_url: https://github.com/octokitten - followers_url: https://api.github.com/users/octokitten/followers - following_url: https://api.github.com/users/octokitten/following{/other_user} - gists_url: https://api.github.com/users/octokitten/gists{/gist_id} - starred_url: https://api.github.com/users/octokitten/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octokitten/subscriptions - organizations_url: https://api.github.com/users/octokitten/orgs - repos_url: https://api.github.com/users/octokitten/repos - events_url: https://api.github.com/users/octokitten/events{/privacy} - received_events_url: https://api.github.com/users/octokitten/received_events - type: User - site_admin: false - copilot-usage-metrics-for-day: - value: - - date: '2024-06-24' - total_active_users: 24 - total_engaged_users: 20 - copilot_ide_code_completions: - total_engaged_users: 20 - languages: - - name: python - total_engaged_users: 10 - - name: ruby - total_engaged_users: 10 - editors: - - name: vscode - total_engaged_users: 13 - models: - - name: default - is_custom_model: false - custom_model_training_date: - total_engaged_users: 13 - languages: - - name: python - total_engaged_users: 6 - total_code_suggestions: 249 - total_code_acceptances: 123 - total_code_lines_suggested: 225 - total_code_lines_accepted: 135 - - name: ruby - total_engaged_users: 7 - total_code_suggestions: 496 - total_code_acceptances: 253 - total_code_lines_suggested: 520 - total_code_lines_accepted: 270 - - name: neovim - total_engaged_users: 7 - models: - - name: a-custom-model - is_custom_model: true - custom_model_training_date: '2024-02-01' - languages: - - name: typescript - total_engaged_users: 3 - total_code_suggestions: 112 - total_code_acceptances: 56 - total_code_lines_suggested: 143 - total_code_lines_accepted: 61 - - name: go - total_engaged_users: 4 - total_code_suggestions: 132 - total_code_acceptances: 67 - total_code_lines_suggested: 154 - total_code_lines_accepted: 72 - copilot_ide_chat: - total_engaged_users: 13 - editors: - - name: vscode - total_engaged_users: 13 - models: - - name: default - is_custom_model: false - custom_model_training_date: - total_engaged_users: 12 - total_chats: 45 - total_chat_insertion_events: 12 - total_chat_copy_events: 16 - - name: a-custom-model - is_custom_model: true - custom_model_training_date: '2024-02-01' - total_engaged_users: 1 - total_chats: 10 - total_chat_insertion_events: 11 - total_chat_copy_events: 3 - copilot_dotcom_chat: - total_engaged_users: 14 - models: - - name: default - is_custom_model: false - custom_model_training_date: - total_engaged_users: 14 - total_chats: 38 - copilot_dotcom_pull_requests: - total_engaged_users: 12 - repositories: - - name: demo/repo1 - total_engaged_users: 8 - models: - - name: default - is_custom_model: false - custom_model_training_date: - total_pr_summaries_created: 6 - total_engaged_users: 8 - - name: demo/repo2 - total_engaged_users: 4 - models: - - name: a-custom-model - is_custom_model: true - custom_model_training_date: '2024-02-01' - total_pr_summaries_created: 10 - total_engaged_users: 4 - copilot-usage-metrics-enterprise: - value: - - day: '2023-10-15' - total_suggestions_count: 5000 - total_acceptances_count: 3000 - total_lines_suggested: 7000 - total_lines_accepted: 3500 - total_active_users: 15 - total_chat_acceptances: 45 - total_chat_turns: 350 - total_active_chat_users: 8 - breakdown: - - language: python - editor: vscode - suggestions_count: 3000 - acceptances_count: 2000 - lines_suggested: 3000 - lines_accepted: 1500 - active_users: 5 - - language: python - editor: jetbrains - suggestions_count: 1000 - acceptances_count: 500 - lines_suggested: 2000 - lines_accepted: 1000 - active_users: 5 - - language: javascript - editor: vscode - suggestions_count: 1000 - acceptances_count: 500 - lines_suggested: 2000 - lines_accepted: 1000 - active_users: 5 - - day: '2023-10-16' - total_suggestions_count: 5200 - total_acceptances_count: 5100 - total_lines_suggested: 5300 - total_lines_accepted: 5000 - total_active_users: 15 - total_chat_acceptances: 57 - total_chat_turns: 455 - total_active_chat_users: 12 - breakdown: - - language: python - editor: vscode - suggestions_count: 3100 - acceptances_count: 3000 - lines_suggested: 3200 - lines_accepted: 3100 - active_users: 5 - - language: python - editor: jetbrains - suggestions_count: 1100 - acceptances_count: 1000 - lines_suggested: 1200 - lines_accepted: 1100 - active_users: 5 - - language: javascript - editor: vscode - suggestions_count: 1000 - acceptances_count: 900 - lines_suggested: 1100 - lines_accepted: 1000 - active_users: 5 dependabot-alerts-for-organization: value: - number: 2 @@ -202880,6 +202313,7 @@ components: received_events_url: https://api.github.com/users/octocat/received_events type: User site_admin: true + push_protection_bypass_request_reviewer_comment: Example response push_protection_bypass_request_comment: Example comment push_protection_bypass_request_html_url: https://github.com/owner/repo/secret_scanning_exemptions/1 resolution_comment: Example comment @@ -202967,76 +202401,13 @@ components: push_protection_bypassed: false push_protection_bypassed_at: push_protection_bypass_request_reviewer: + push_protection_bypass_request_reviewer_comment: push_protection_bypass_request_comment: push_protection_bypass_request_html_url: resolution_comment: validity: unknown publicly_leaked: false multi_repo: false - 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 public-events-items: value: - id: '22249084947' @@ -206272,6 +205643,236 @@ components: cli: enabled public_code_suggestions: block plan_type: business + copilot-seats-list: + value: + total_seats: 2 + seats: + - created_at: '2021-08-03T18:00:00-06:00' + updated_at: '2021-09-23T15:00:00-06:00' + pending_cancellation_date: + last_activity_at: '2021-10-14T00:53:32-06:00' + last_activity_editor: vscode/1.77.3/copilot/1.86.82 + plan_type: business + assignee: + login: octocat + id: 1 + node_id: MDQ6VXNlcjE= + avatar_url: https://github.com/images/error/octocat_happy.gif + gravatar_id: '' + url: https://api.github.com/users/octocat + html_url: https://github.com/octocat + followers_url: https://api.github.com/users/octocat/followers + following_url: https://api.github.com/users/octocat/following{/other_user} + gists_url: https://api.github.com/users/octocat/gists{/gist_id} + starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/octocat/subscriptions + organizations_url: https://api.github.com/users/octocat/orgs + repos_url: https://api.github.com/users/octocat/repos + events_url: https://api.github.com/users/octocat/events{/privacy} + received_events_url: https://api.github.com/users/octocat/received_events + type: User + site_admin: false + assigning_team: + id: 1 + node_id: MDQ6VGVhbTE= + url: https://api.github.com/teams/1 + html_url: https://github.com/orgs/github/teams/justice-league + name: Justice League + slug: justice-league + description: A great team. + privacy: closed + notification_setting: notifications_enabled + permission: admin + members_url: https://api.github.com/teams/1/members{/member} + repositories_url: https://api.github.com/teams/1/repos + parent: + - created_at: '2021-09-23T18:00:00-06:00' + updated_at: '2021-09-23T15:00:00-06:00' + pending_cancellation_date: '2021-11-01' + last_activity_at: '2021-10-13T00:53:32-06:00' + last_activity_editor: vscode/1.77.3/copilot/1.86.82 + assignee: + login: octokitten + id: 1 + node_id: MDQ76VNlcjE= + avatar_url: https://github.com/images/error/octokitten_happy.gif + gravatar_id: '' + url: https://api.github.com/users/octokitten + html_url: https://github.com/octokitten + followers_url: https://api.github.com/users/octokitten/followers + following_url: https://api.github.com/users/octokitten/following{/other_user} + gists_url: https://api.github.com/users/octokitten/gists{/gist_id} + starred_url: https://api.github.com/users/octokitten/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/octokitten/subscriptions + organizations_url: https://api.github.com/users/octokitten/orgs + repos_url: https://api.github.com/users/octokitten/repos + events_url: https://api.github.com/users/octokitten/events{/privacy} + received_events_url: https://api.github.com/users/octokitten/received_events + type: User + site_admin: false + copilot-usage-metrics-for-day: + value: + - date: '2024-06-24' + total_active_users: 24 + total_engaged_users: 20 + copilot_ide_code_completions: + total_engaged_users: 20 + languages: + - name: python + total_engaged_users: 10 + - name: ruby + total_engaged_users: 10 + editors: + - name: vscode + total_engaged_users: 13 + models: + - name: default + is_custom_model: false + custom_model_training_date: + total_engaged_users: 13 + languages: + - name: python + total_engaged_users: 6 + total_code_suggestions: 249 + total_code_acceptances: 123 + total_code_lines_suggested: 225 + total_code_lines_accepted: 135 + - name: ruby + total_engaged_users: 7 + total_code_suggestions: 496 + total_code_acceptances: 253 + total_code_lines_suggested: 520 + total_code_lines_accepted: 270 + - name: neovim + total_engaged_users: 7 + models: + - name: a-custom-model + is_custom_model: true + custom_model_training_date: '2024-02-01' + languages: + - name: typescript + total_engaged_users: 3 + total_code_suggestions: 112 + total_code_acceptances: 56 + total_code_lines_suggested: 143 + total_code_lines_accepted: 61 + - name: go + total_engaged_users: 4 + total_code_suggestions: 132 + total_code_acceptances: 67 + total_code_lines_suggested: 154 + total_code_lines_accepted: 72 + copilot_ide_chat: + total_engaged_users: 13 + editors: + - name: vscode + total_engaged_users: 13 + models: + - name: default + is_custom_model: false + custom_model_training_date: + total_engaged_users: 12 + total_chats: 45 + total_chat_insertion_events: 12 + total_chat_copy_events: 16 + - name: a-custom-model + is_custom_model: true + custom_model_training_date: '2024-02-01' + total_engaged_users: 1 + total_chats: 10 + total_chat_insertion_events: 11 + total_chat_copy_events: 3 + copilot_dotcom_chat: + total_engaged_users: 14 + models: + - name: default + is_custom_model: false + custom_model_training_date: + total_engaged_users: 14 + total_chats: 38 + copilot_dotcom_pull_requests: + total_engaged_users: 12 + repositories: + - name: demo/repo1 + total_engaged_users: 8 + models: + - name: default + is_custom_model: false + custom_model_training_date: + total_pr_summaries_created: 6 + total_engaged_users: 8 + - name: demo/repo2 + total_engaged_users: 4 + models: + - name: a-custom-model + is_custom_model: true + 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 @@ -209604,6 +209205,11 @@ components: used: 0 remaining: 10 reset: 1691591091 + code_scanning_autofix: + limit: 10 + used: 0 + remaining: 10 + reset: 1691591091 rate: limit: 5000 used: 1 @@ -220550,6 +220156,7 @@ components: received_events_url: https://api.github.com/users/octocat/received_events type: User site_admin: true + push_protection_bypass_request_reviewer_comment: Example response push_protection_bypass_request_comment: Example comment push_protection_bypass_request_html_url: https://github.com/owner/repo/secret_scanning_exemptions/1 resolution_comment: Example comment @@ -220572,6 +220179,7 @@ components: push_protection_bypassed: false push_protection_bypassed_at: push_protection_bypass_request_reviewer: + push_protection_bypass_request_reviewer_comment: push_protection_bypass_request_comment: push_protection_bypass_request_html_url: resolution_comment: @@ -220596,6 +220204,7 @@ components: push_protection_bypassed: false push_protection_bypassed_at: push_protection_bypass_request_reviewer: + push_protection_bypass_request_reviewer_comment: push_protection_bypass_request_comment: push_protection_bypass_request_html_url: resolution_comment: @@ -220638,6 +220247,7 @@ components: push_protection_bypassed_by: push_protection_bypassed_at: push_protection_bypass_request_reviewer: + push_protection_bypass_request_reviewer_comment: push_protection_bypass_request_comment: push_protection_bypass_request_html_url: resolution_comment: Example comment @@ -226703,20 +226313,6 @@ components: schema: type: boolean default: false - enterprise-team-slug: - name: team_slug - description: The slug of the enterprise team name. - in: path - required: true - schema: - type: string - team-slug: - name: team_slug - description: The slug of the team name. - in: path - required: true - schema: - type: string gist-id: name: gist_id description: The unique identifier of the gist. @@ -227098,6 +226694,13 @@ components: required: true schema: type: string + team-slug: + name: team_slug + description: The slug of the team name. + in: path + required: true + schema: + type: string role-id: name: role_id description: The unique identifier of the role. @@ -227940,19 +227543,6 @@ components: application/json: schema: "$ref": "#/components/schemas/basic-error" - internal_error: - description: Internal Error - content: - application/json: - schema: - "$ref": "#/components/schemas/basic-error" - usage_metrics_api_disabled: - description: Copilot Usage Merics API setting is disabled at the organization - or enterprise level. - content: - application/json: - schema: - "$ref": "#/components/schemas/basic-error" service_unavailable: description: Service unavailable content: @@ -228003,6 +227593,12 @@ components: examples: default: "$ref": "#/components/examples/billing-usage-report" + internal_error: + description: Internal Error + content: + application/json: + schema: + "$ref": "#/components/schemas/basic-error" conflict: description: Conflict content: @@ -228067,6 +227663,13 @@ components: "$ref": "#/components/examples/runner-labels-readonly" no_content: description: A header with no content is returned. + usage_metrics_api_disabled: + description: Copilot Usage Merics API setting is disabled at the organization + or enterprise level. + content: + application/json: + schema: + "$ref": "#/components/schemas/basic-error" package_es_list_error: description: The value of `per_page` multiplied by `page` cannot be greater than 10000.