diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index fa87d5997b0..4a0bbcdb68f 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "2613abe9bea3162d3f87cc73a6dfdeed", + "specHash": "a9f9373b436a715e38764f5f7b04e767", "generatedFiles": { "files": [ { @@ -980,7 +980,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ContentTree.php", - "hash": "4e2aead7a02b5b5c418c9a4db10a91e8" + "hash": "ee7ba109315083cb3caa36860fbb14ed" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ContentDirectory.php", @@ -2956,7 +2956,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ContentTree\/Entries.php", - "hash": "c984bd9530ad7628292245c11f899b3d" + "hash": "78e1da8b8a0fda04a3114e9a7af4bb66" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ContentTree\/Entries\/Links.php", @@ -11676,7 +11676,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php", - "hash": "0609c00665283fb0720f16bc99656890" + "hash": "c7942b67efff87e3886a31a79eb0df76" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotSeatDetails.php", @@ -26232,7 +26232,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Contents\/Path.php", - "hash": "11f97d45e82fe21171ef657931272cd1" + "hash": "9112bfa23967f19fccc281d3f24a747c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Contributors.php", diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Contents/Path.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Contents/Path.php index fb2eb7123f5..afc004a030e 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Contents/Path.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Contents/Path.php @@ -128,6 +128,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Cont after_sha: + $value = $payload['content'] ?? null; + + if ($value === null) { + $properties['content'] = null; + goto after_content; + } + + $properties['content'] = $value; + + after_content: + $value = $payload['url'] ?? null; if ($value === null) { @@ -1184,6 +1195,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $sha = $object->sha; after_sha: $result['sha'] = $sha; + $content = $object->content; + + if ($content === null) { + goto after_content; + } + + after_content: $result['content'] = $content; + $url = $object->url; after_url: $result['url'] = $url; diff --git a/clients/GitHub/src/Schema/ContentTree.php b/clients/GitHub/src/Schema/ContentTree.php index 318dd5ae402..3f5bc4e5f1c 100644 --- a/clients/GitHub/src/Schema/ContentTree.php +++ b/clients/GitHub/src/Schema/ContentTree.php @@ -21,9 +21,7 @@ "sha", "size", "type", - "url", - "content", - "encoding" + "url" ], "type": "object", "properties": { @@ -42,6 +40,9 @@ "sha": { "type": "string" }, + "content": { + "type": "string" + }, "url": { "type": "string", "format": "uri" @@ -96,9 +97,6 @@ "path": { "type": "string" }, - "content": { - "type": "string" - }, "sha": { "type": "string" }, @@ -197,6 +195,7 @@ "name": "generated", "path": "generated", "sha": "generated", + "content": "generated", "url": "https:\\/\\/example.com\\/", "git_url": "https:\\/\\/example.com\\/", "html_url": "https:\\/\\/example.com\\/", @@ -207,7 +206,6 @@ "size": 4, "name": "generated", "path": "generated", - "content": "generated", "sha": "generated", "url": "https:\\/\\/example.com\\/", "git_url": "https:\\/\\/example.com\\/", @@ -224,7 +222,6 @@ "size": 4, "name": "generated", "path": "generated", - "content": "generated", "sha": "generated", "url": "https:\\/\\/example.com\\/", "git_url": "https:\\/\\/example.com\\/", @@ -244,7 +241,7 @@ } }'; - public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string $url, #[MapFrom('git_url')] + public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string|null $content, public string $url, #[MapFrom('git_url')] public string|null $gitUrl, #[MapFrom('html_url')] public string|null $htmlUrl, #[MapFrom('download_url')] public string|null $downloadUrl, public array|null $entries, #[MapFrom('_links')] diff --git a/clients/GitHub/src/Schema/ContentTree/Entries.php b/clients/GitHub/src/Schema/ContentTree/Entries.php index 6e20f776599..f1a8d3c237a 100644 --- a/clients/GitHub/src/Schema/ContentTree/Entries.php +++ b/clients/GitHub/src/Schema/ContentTree/Entries.php @@ -36,9 +36,6 @@ "path": { "type": "string" }, - "content": { - "type": "string" - }, "sha": { "type": "string" }, @@ -104,7 +101,6 @@ "size": 4, "name": "generated", "path": "generated", - "content": "generated", "sha": "generated", "url": "https:\\/\\/example.com\\/", "git_url": "https:\\/\\/example.com\\/", @@ -117,7 +113,7 @@ } }'; - public function __construct(public string $type, public int $size, public string $name, public string $path, public string|null $content, public string $sha, public string $url, #[MapFrom('git_url')] + public function __construct(public string $type, public int $size, public string $name, public string $path, public string $sha, public string $url, #[MapFrom('git_url')] public string|null $gitUrl, #[MapFrom('html_url')] public string|null $htmlUrl, #[MapFrom('download_url')] public string|null $downloadUrl, #[MapFrom('_links')] diff --git a/clients/GitHub/src/Schema/CopilotOrganizationDetails.php b/clients/GitHub/src/Schema/CopilotOrganizationDetails.php index a0b73163216..ca812325079 100644 --- a/clients/GitHub/src/Schema/CopilotOrganizationDetails.php +++ b/clients/GitHub/src/Schema/CopilotOrganizationDetails.php @@ -10,7 +10,7 @@ final readonly class CopilotOrganizationDetails { public const SCHEMA_JSON = '{ - "title": "Copilot Business Organization Details", + "title": "Copilot Organization Details", "required": [ "seat_breakdown", "public_code_suggestions", @@ -97,11 +97,11 @@ "description": "The mode of assigning new seats." } }, - "description": "Information about the seat breakdown and policies set for an organization with a Copilot Business subscription.", + "description": "Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.", "additionalProperties": true }'; - public const SCHEMA_TITLE = 'Copilot Business Organization Details'; - public const SCHEMA_DESCRIPTION = 'Information about the seat breakdown and policies set for an organization with a Copilot Business subscription.'; + public const SCHEMA_TITLE = 'Copilot Organization Details'; + public const SCHEMA_DESCRIPTION = 'Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription.'; public const SCHEMA_EXAMPLE_DATA = '{ "seat_breakdown": { "total": 5, diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 55f2f4d2656..d2e0458408c 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -24449,8 +24449,6 @@ paths: Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. - Anyone with read access to the repository can use this endpoint. - If the repository is private, OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. tags: - codespaces @@ -72180,9 +72178,9 @@ components: description: The number of seats that have not used Copilot during the current billing cycle. copilot-organization-details: - title: Copilot Business Organization Details + title: Copilot Organization Details description: Information about the seat breakdown and policies set for an organization - with a Copilot Business subscription. + with a Copilot Business or Copilot Enterprise subscription. type: object properties: seat_breakdown: @@ -81378,6 +81376,8 @@ components: type: string sha: type: string + content: + type: string url: type: string format: uri @@ -81409,8 +81409,6 @@ components: type: string path: type: string - content: - type: string sha: type: string url: @@ -81493,8 +81491,6 @@ components: - size - type - url - - content - - encoding content-directory: title: Content Directory description: A list of directory items @@ -203039,6 +203035,9 @@ components: active_this_cycle: 12 inactive_this_cycle: 11 seat_management_setting: assign_selected + ide_chat: enabled + platform_chat: enabled + cli: enabled public_code_suggestions: block organization-dependabot-secret-paginated: value: