diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index d6fb5edd058..ea3b9e06079 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "b8769452718d6d7793dc313b1b4aae02", + "specHash": "0060b499a5d39e935a73965cb74e1cd7", "generatedFiles": { "files": [ { @@ -216,7 +216,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/BaseGist.php", - "hash": "fe1743649947d9b6b4f23210365e25d2" + "hash": "6a4c0f624e46228684170909267749bb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/PublicUser.php", @@ -228,7 +228,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistSimple.php", - "hash": "92458eed8789d76fe1ee5ccbed68fd3f" + "hash": "830ff132801cff2da8c06596d183f567" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistComment.php", @@ -1020,7 +1020,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom.php", - "hash": "1fac181e9709ac23cd2d148d97cc51e9" + "hash": "2b34386e561862bb95a6964f9c133078" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Metadata.php", @@ -2596,7 +2596,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/BaseGist\/Files.php", - "hash": "09f696f9a86b28ae35c7c7c8b3dbfc05" + "hash": "fec30dd4158ff37c3882ef0174c17c25" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/PublicUser\/Plan.php", @@ -2616,7 +2616,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistSimple\/Files.php", - "hash": "1b5693aba03f4ca6bb2a7d92a84b5838" + "hash": "6795e635121a0e280bac2ca35033004d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/MarketplacePurchase\/MarketplacePendingChange.php", @@ -2996,7 +2996,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom\/Sbom.php", - "hash": "3c4ab5e98dbbe2fe531b0aff28d85829" + "hash": "f4bc432910e9f5456cd871f8b2b3076b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom\/Sbom\/CreationInfo.php", @@ -3004,7 +3004,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom\/Sbom\/Packages.php", - "hash": "e4864ff3b53f3eec3ba6e1a72d590160" + "hash": "13058210d032e1cbb0369e9f2d89abe1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom\/Sbom\/Packages\/ExternalRefs.php", @@ -5640,7 +5640,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Users.php", - "hash": "eaa240043367d1e6fafea11639d96254" + "hash": "3dbce1b405bb6506b17dffb6b89b814f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operations.php", @@ -5694,13 +5694,9 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem\/PullRequest.php", "hash": "465ddf9717992308cfddc9ced502421b" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD335746C\/Tiet406EDE4F\/TietC95BE99F\/TietC8083F83.php", - "hash": "d06ea5555ba1652c9de00d8520bf5c9d" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistSimple\/ForkOf\/Files.php", - "hash": "08ffbf451b13fa401c03e018b9a9ce24" + "hash": "f212c91d3002f8eb184dd2fe324833e2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet3D775F5C\/TietC5097624\/TietA99A13A4\/TietE24C2E4A.php", @@ -11620,7 +11616,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Copilot.php", - "hash": "148290dd696a6938081914d1f8d9ba62" + "hash": "834bddbca068114bb35b70f3312b0dcd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CheckAutomatedSecurityFixes.php", @@ -13884,7 +13880,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/CancelCopilotSeatAssignmentForUsers.php", - "hash": "b6be04c79deb9abb4ac9eda8458c71a2" + "hash": "96993b324a7999d1079fed4b0314d5d2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/CancelCopilotSeatAssignmentForUsersTest.php", @@ -24492,7 +24488,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Copilot.php", - "hash": "3a458f57985cc89713873402e32785e9" + "hash": "efd3fe533b8f10b9ef76cbe3b49b002e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/CodeScanning.php", @@ -24760,7 +24756,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Copilot.php", - "hash": "bbdb641896ff965babd59937429a1773" + "hash": "11b98758d1b541880f815256cb19d433" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Reactions.php", @@ -24888,7 +24884,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php", - "hash": "43489effb4287a623862afc82213a25c" + "hash": "9d52e88c5af6aa5a666a418c7149880a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Five.php", @@ -25004,7 +25000,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php", - "hash": "73f6df01dba95e873be2598312f65958" + "hash": "7e5c39735eb9b1f7917a4749cfbf696c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Eight.php", @@ -26164,7 +26160,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/DependencyGraph\/Sbom.php", - "hash": "ca0a708cde6afd0df3432ab4174d9704" + "hash": "2a88b4076668173b6bd5f0b5fc111f57" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/DependencyGraph\/Snapshots.php", @@ -27644,11 +27640,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "6ae16abaa5e4120437edef7859214188" + "hash": "bd81aa4582ee720aa9dada541bc1ff66" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "261160fbab16ac74669744bed6a8ca24" + "hash": "a1d23a8f5baa19ef387a0224ea0f427e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -28516,7 +28512,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/AddCopilotSeatsForUsers.php", - "hash": "7f87225047a2b6ec6ba002bee8689a4b" + "hash": "d763d8d501aaa0b8acb4ad4a7819c44b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/AddCopilotSeatsForUsersTest.php", @@ -30997,6 +30993,14 @@ { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Insights\/Api\/SummaryStats\/ActorType\/ActorId.php", "hash": "a93ba1f6eb83fc9f8c318615c49ba1d6" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsRequiredReviewerConfiguration.php", + "hash": "b85aa69ed2efcbdcf2b1154a6cdfa482" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom\/Sbom\/Relationships.php", + "hash": "f6f24936ee897b9ac1b455b032238224" } ] }, diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/DependencyGraph/Sbom.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/DependencyGraph/Sbom.php index 0061b092173..225fb2faac9 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/DependencyGraph/Sbom.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/DependencyGraph/Sbom.php @@ -116,6 +116,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Depe after_spdxVersion: + $value = $payload['comment'] ?? null; + + if ($value === null) { + $properties['comment'] = null; + goto after_comment; + } + + $properties['comment'] = $value; + + after_comment: + $value = $payload['creation_info'] ?? null; if ($value === null) { @@ -158,17 +169,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Depe after_dataLicense: - $value = $payload['document_describes'] ?? null; - - if ($value === null) { - $missingFields[] = 'document_describes'; - goto after_documentDescribes; - } - - $properties['documentDescribes'] = $value; - - after_documentDescribes: - $value = $payload['document_namespace'] ?? null; if ($value === null) { @@ -190,6 +190,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Depe $properties['packages'] = $value; after_packages: + + $value = $payload['relationships'] ?? null; + + if ($value === null) { + $properties['relationships'] = null; + goto after_relationships; + } + + $properties['relationships'] = $value; + + after_relationships: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom\Sbom', $exception, stack: $this->hydrationStack); } @@ -429,6 +440,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $spdxVersion = $object->spdxVersion; after_spdxVersion: $result['spdx_version'] = $spdxVersion; + $comment = $object->comment; + + if ($comment === null) { + goto after_comment; + } + + after_comment: $result['comment'] = $comment; + $creationInfo = $object->creationInfo; $creationInfo = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependencyGraphSpdxSbom⚡️Sbom⚡️CreationInfo($creationInfo); after_creationInfo: $result['creation_info'] = $creationInfo; @@ -439,16 +458,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $dataLicense = $object->dataLicense; after_dataLicense: $result['data_license'] = $dataLicense; - $documentDescribes = $object->documentDescribes; - static $documentDescribesSerializer0; - - if ($documentDescribesSerializer0 === null) { - $documentDescribesSerializer0 = new SerializeArrayItems(...[]); - } - - $documentDescribes = $documentDescribesSerializer0->serialize($documentDescribes, $this); - after_documentDescribes: $result['document_describes'] = $documentDescribes; - $documentNamespace = $object->documentNamespace; after_documentNamespace: $result['document_namespace'] = $documentNamespace; @@ -462,6 +471,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $packages = $packagesSerializer0->serialize($packages, $this); after_packages: $result['packages'] = $packages; + $relationships = $object->relationships; + + if ($relationships === null) { + goto after_relationships; + } + + static $relationshipsSerializer0; + + if ($relationshipsSerializer0 === null) { + $relationshipsSerializer0 = new SerializeArrayItems(...[]); + } + + $relationships = $relationshipsSerializer0->serialize($relationships, $this); + after_relationships: $result['relationships'] = $relationships; + return $result; } diff --git a/clients/GitHub/src/Internal/Operator/Copilot/AddCopilotSeatsForUsers.php b/clients/GitHub/src/Internal/Operator/Copilot/AddCopilotSeatsForUsers.php index 36e5d684fcd..6b5dcbb9ebd 100644 --- a/clients/GitHub/src/Internal/Operator/Copilot/AddCopilotSeatsForUsers.php +++ b/clients/GitHub/src/Internal/Operator/Copilot/AddCopilotSeatsForUsers.php @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, array $params): Created|WithoutBody { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\AddCopilotSeatsForUsers($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHub/src/Internal/Operator/Copilot/CancelCopilotSeatAssignmentForUsers.php b/clients/GitHub/src/Internal/Operator/Copilot/CancelCopilotSeatAssignmentForUsers.php index 0963c73d91f..1e2171e752f 100644 --- a/clients/GitHub/src/Internal/Operator/Copilot/CancelCopilotSeatAssignmentForUsers.php +++ b/clients/GitHub/src/Internal/Operator/Copilot/CancelCopilotSeatAssignmentForUsers.php @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, array $params): Ok|WithoutBody { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\CancelCopilotSeatAssignmentForUsers($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHub/src/Internal/Router/Delete/Copilot.php b/clients/GitHub/src/Internal/Router/Delete/Copilot.php index ade91318172..26e3456438a 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Copilot.php +++ b/clients/GitHub/src/Internal/Router/Delete/Copilot.php @@ -35,6 +35,7 @@ public function cancelCopilotSeatAssignmentForTeams(array $params): Ok|WithoutBo return $operator->call($arguments['org'], $params); } + /** @return */ public function cancelCopilotSeatAssignmentForUsers(array $params): \ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|WithoutBody { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Delete/Six.php b/clients/GitHub/src/Internal/Router/Delete/Six.php index 80ad09297bc..f43dc6be9c4 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Six.php +++ b/clients/GitHub/src/Internal/Router/Delete/Six.php @@ -17,7 +17,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */ public function call(string $call, array $params, array $pathChunks): WithoutBody|Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|ActionsCacheList|FileCommit { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Post/Copilot.php b/clients/GitHub/src/Internal/Router/Post/Copilot.php index f3ae92db495..b7eed833fab 100644 --- a/clients/GitHub/src/Internal/Router/Post/Copilot.php +++ b/clients/GitHub/src/Internal/Router/Post/Copilot.php @@ -35,6 +35,7 @@ public function addCopilotSeatsForTeams(array $params): Created|WithoutBody return $operator->call($arguments['org'], $params); } + /** @return */ public function addCopilotSeatsForUsers(array $params): \ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|WithoutBody { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Post/Six.php b/clients/GitHub/src/Internal/Router/Post/Six.php index 17d6e88b9a6..8f408f2ae2e 100644 --- a/clients/GitHub/src/Internal/Router/Post/Six.php +++ b/clients/GitHub/src/Internal/Router/Post/Six.php @@ -34,7 +34,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */ public function call(string $call, array $params, array $pathChunks): Json|Created|AuthenticationToken|WithoutBody|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|TeamDiscussion|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|EmptyObject|CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|ShortBlob|GitCommit|GitRef|GitTag|GitTree|PageBuildStatus|PageDeployment|ReleaseNotesContent|SecretScanningPushProtectionBypass|RepositoryAdvisory|Status|TagProtection|TeamDiscussionComment|Reaction { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Operation/Copilot.php b/clients/GitHub/src/Operation/Copilot.php index 36948d10185..73b0c2ab41e 100644 --- a/clients/GitHub/src/Operation/Copilot.php +++ b/clients/GitHub/src/Operation/Copilot.php @@ -96,11 +96,13 @@ public function cancelCopilotSeatAssignmentForTeams(string $org, array $params): return $this->operators->copilot👷CancelCopilotSeatAssignmentForTeams()->call($org, $params); } + /** @return */ public function addCopilotSeatsForUsers(string $org, array $params): \ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|WithoutBody { return $this->operators->copilot👷AddCopilotSeatsForUsers()->call($org, $params); } + /** @return */ public function cancelCopilotSeatAssignmentForUsers(string $org, array $params): \ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|WithoutBody { return $this->operators->copilot👷CancelCopilotSeatAssignmentForUsers()->call($org, $params); diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index a650dcbd6be..159c478c298 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -868,11 +868,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'POST /orgs/{org}/copilot/billing/selected_users') { - return $this->typeResolver->resolve('Schema\\Operations\\Copilot\\AddCopilotSeatsForUsers\\Response\\ApplicationJson\\Created|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'DELETE /orgs/{org}/copilot/billing/selected_users') { - return $this->typeResolver->resolve('Schema\\Operations\\Copilot\\CancelCopilotSeatAssignmentForUsers\\Response\\ApplicationJson\\Ok|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /orgs/{org}/copilot/metrics') { diff --git a/clients/GitHub/src/Schema/AliasAbstract/TietD335746C/Tiet406EDE4F/TietC95BE99F/TietC8083F83.php b/clients/GitHub/src/Schema/AliasAbstract/TietD335746C/Tiet406EDE4F/TietC95BE99F/TietC8083F83.php deleted file mode 100644 index 3e9d384fca7..00000000000 --- a/clients/GitHub/src/Schema/AliasAbstract/TietD335746C/Tiet406EDE4F/TietC95BE99F/TietC8083F83.php +++ /dev/null @@ -1,39 +0,0 @@ -call('GET /orgs/{org}/copilot/billing/seats')); assertType('', $client->call('POST /orgs/{org}/copilot/billing/selected_teams')); assertType('', $client->call('DELETE /orgs/{org}/copilot/billing/selected_teams')); -assertType('Schema\\Operations\\Copilot\\AddCopilotSeatsForUsers\\Response\\ApplicationJson\\Created|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('POST /orgs/{org}/copilot/billing/selected_users')); -assertType('Schema\\Operations\\Copilot\\CancelCopilotSeatAssignmentForUsers\\Response\\ApplicationJson\\Ok|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /orgs/{org}/copilot/billing/selected_users')); +assertType('', $client->call('POST /orgs/{org}/copilot/billing/selected_users')); +assertType('', $client->call('DELETE /orgs/{org}/copilot/billing/selected_users')); assertType('Observable', $client->call('GET /orgs/{org}/copilot/metrics')); assertType('Observable', $client->call('LIST /orgs/{org}/copilot/metrics')); assertType('Observable', $client->call('GET /orgs/{org}/copilot/usage')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 4b7a9412bd6..3009f959a86 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -1592,6 +1592,8 @@ paths: 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. @@ -70752,6 +70754,11 @@ components: type: string size: type: integer + encoding: + type: string + description: The encoding used for `content`. Currently, `"utf-8"` + and `"base64"` are supported. + default: utf-8 public: type: boolean created_at: @@ -71165,6 +71172,11 @@ components: type: boolean content: type: string + encoding: + type: string + description: The encoding used for `content`. Currently, `"utf-8"` + and `"base64"` are supported. + default: utf-8 public: type: boolean created_at: @@ -76165,6 +76177,31 @@ components: type: string enum: - required_signatures + repository-rule-params-required-reviewer-configuration: + title: RequiredReviewerConfiguration + description: A reviewing team, and file patterns describing which files they + must approve changes to. + type: object + properties: + file_patterns: + type: array + description: Array of file patterns. Pull requests which change matching + files must be approved by the specified team. File patterns use the same + syntax as `.gitignore` files. + items: + type: string + minimum_approvals: + type: integer + description: Minimum number of approvals required from the specified team. + If set to zero, the team will be added to the pull request but approval + is optional. + reviewer_id: + type: string + description: Node ID of the team which must review changes to matching files. + required: + - file_patterns + - minimum_approvals + - reviewer_id repository-rule-pull-request: title: pull_request description: Require all commits be made to a non-target branch and submitted @@ -84106,6 +84143,12 @@ components: conforms to. examples: - SPDX-2.3 + comment: + type: string + description: An optional comment about the SPDX document. + examples: + - 'Exact versions could not be resolved for some packages. For more + information: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/' creationInfo: type: object properties: @@ -84134,18 +84177,11 @@ components: description: The license under which the SPDX document is licensed. examples: - CC0-1.0 - documentDescribes: - type: array - items: - type: string - examples: - - github/github - description: The name of the repository that the SPDX document describes. documentNamespace: type: string description: The namespace for the SPDX document. examples: - - https://github.com/example/dependency_graph/sbom-123 + - https://spdx.org/spdxdocs/protobom/15e41dd2-f961-4f4d-b8dc-f8f57ad70d57 packages: type: array items: @@ -84160,7 +84196,7 @@ components: type: string description: The name of the package. examples: - - rubygems:github/github + - github/github versionInfo: type: string description: |- @@ -84240,14 +84276,34 @@ components: - versionInfo - downloadLocation - filesAnalyzed - - supplier + relationships: + type: array + items: + type: object + properties: + relationshipType: + type: string + description: The type of relationship between the two SPDX elements. + examples: + - DEPENDS_ON + spdxElementId: + type: string + description: The SPDX identifier of the package that is the source + of the relationship. + relatedSpdxElement: + type: string + description: The SPDX identifier of the package that is the target + of the relationship. + required: + - relationshipType + - spdxElementId + - relatedSpdxElement required: - SPDXID - spdxVersion - creationInfo - name - dataLicense - - documentDescribes - documentNamespace - packages required: @@ -202216,6 +202272,7 @@ components: size: 23 truncated: false content: Hello world from GitHub + encoding: utf-8 public: true created_at: '2022-09-20T12:11:58Z' updated_at: '2022-09-21T10:28:06Z' @@ -214776,18 +214833,36 @@ components: - 'Tool: GitHub.com-Dependency-Graph' name: github/example dataLicense: CC0-1.0 - documentDescribes: - - github/example - documentNamespace: https://github.com/github/example/dependency_graph/sbom-abcdef123456 + documentNamespace: https://spdx.org/spdxdocs/protobom/15e41dd2-f961-4f4d-b8dc-f8f57ad70d57 packages: - - SPDXID: SPDXRef-Package - name: rubygems:rails + - name: rails + SPDXID: SPDXRef-Package versionInfo: 1.0.0 downloadLocation: NOASSERTION filesAnalyzed: false licenseConcluded: MIT licenseDeclared: MIT copyrightText: Copyright (c) 1985 GitHub.com + externalRefs: + - referenceCategory: PACKAGE-MANAGER + referenceType: purl + referenceLocator: pkg:gem/rails@1.0.0 + - name: github/example + SPDXID: SPDXRef-Repository + versionInfo: main + downloadLocation: NOASSERTION + filesAnalyzed: false + externalRefs: + - referenceCategory: PACKAGE-MANAGER + referenceType: purl + referenceLocator: pkg:github/example@main + relationships: + - relationshipType: DEPENDS_ON + spdxElementId: SPDXRef-Repository + relatedSpdxElement: SPDXRef-Package + - relationshipType: DESCRIBES + spdxElementId: SPDXRef-DOCUMENT + relatedSpdxElement: SPDXRef-Repository dependency-graph-create-snapshot-request: value: version: 0