Skip to content

Commit 37f8a9c

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHub] Update to 1.1.4-db98add04ce623b04585203c6ced5d4b from 1.1.4-975ed3e1d762d10ff749fca3c2105b5a
Detected Schema changes: ``` └─┬Components ├──[➖] schemas (75952:7)❌ ├──[➕] schemas (75952:7) └─┬copilot-organization-details ├─┬public_code_suggestions │ ├──[➕] enum (75995:13) │ └──[🔀] description (75989:24) ├─┬platform_chat │ └──[🔀] description (76006:24) ├─┬seat_breakdown │ └──[🔀] $ref (75952:14)❌ ├─┬cli │ └──[🔀] description (76014:24) ├─┬plan_type │ └──[➕] enum (76035:13) └─┬ide_chat └──[🔀] description (75998:24) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | components | 9 | 2 | Date: 02/13/25 | Commit: New: etc/specs/GitHub/previous.spec.yaml, Original: etc/specs/GitHub/current.spec.yaml - ❌ **BREAKING Changes**: _2_ out of _9_ - **Modifications**: _5_ - **Removals**: _1_ - **Additions**: _3_ - **Breaking Removals**: _1_ - **Breaking Modifications**: _1_ ERROR: breaking changes discovered
1 parent d39e410 commit 37f8a9c

File tree

6 files changed

+55
-59
lines changed

6 files changed

+55
-59
lines changed

clients/GitHub/etc/openapi-client-generator.state

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "975ed3e1d762d10ff749fca3c2105b5a",
2+
"specHash": "db98add04ce623b04585203c6ced5d4b",
33
"generatedFiles": {
44
"files": [
55
{
@@ -5560,7 +5560,7 @@
55605560
},
55615561
{
55625562
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Orgs.php",
5563-
"hash": "69c5de1d9c2ea9c9f4a47c99a158f37c"
5563+
"hash": "2af451090a9b56d1994a6dcd8e65f4e2"
55645564
},
55655565
{
55665566
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php",
@@ -5596,7 +5596,7 @@
55965596
},
55975597
{
55985598
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php",
5599-
"hash": "db17b23c5ac1efafd63ff36b1638e622"
5599+
"hash": "946c8e10b9dede0d909c097dff038341"
56005600
},
56015601
{
56025602
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -11574,13 +11574,9 @@
1157411574
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleDetailed.php",
1157511575
"hash": "2ddf01f931848dc8dae3093027c68aa4"
1157611576
},
11577-
{
11578-
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotSeatBreakdown.php",
11579-
"hash": "329771699046cdadace0eee81bf5c272"
11580-
},
1158111577
{
1158211578
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php",
11583-
"hash": "2050773bcb76af8cf988458a3bfd22a1"
11579+
"hash": "2a7341605329a119bd65d5b5e83785a1"
1158411580
},
1158511581
{
1158611582
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotSeatDetails.php",
@@ -25380,7 +25376,7 @@
2538025376
},
2538125377
{
2538225378
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Billing.php",
25383-
"hash": "ba0ebdf9ed5de7f8bbfe345861748d2c"
25379+
"hash": "3f27e0be70b44a105dbe2f55c5b16945"
2538425380
},
2538525381
{
2538625382
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Billing\/Seats.php",
@@ -27048,7 +27044,7 @@
2704827044
},
2704927045
{
2705027046
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
27051-
"hash": "627acdf6598fb53e73251e26d698c749"
27047+
"hash": "f364c8dc89d92f50fd9dbcbd2c7c9bde"
2705227048
},
2705327049
{
2705427050
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php",
@@ -31945,6 +31941,10 @@
3194531941
{
3194631942
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/DismissalApprovedBy.php",
3194731943
"hash": "2d3e43a91657c1977300fdbc36d37723"
31944+
},
31945+
{
31946+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationSeatBreakdown.php",
31947+
"hash": "4260c5a9ab97fe4ce33b3eb89a8b73d0"
3194831948
}
3194931949
]
3195031950
},

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Copilot/Billing.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use ApiClients\Client\GitHub\Schema\BasicError;
88
use ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails;
9-
use ApiClients\Client\GitHub\Schema\CopilotSeatBreakdown;
9+
use ApiClients\Client\GitHub\Schema\CopilotOrganizationSeatBreakdown;
1010
use EventSauce\ObjectHydrator\IterableList;
1111
use EventSauce\ObjectHydrator\ObjectMapper;
1212
use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems;
@@ -43,7 +43,7 @@ public function hydrateObject(string $className, array $payload): object
4343
{
4444
return match ($className) {
4545
'ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotOrganizationDetails($payload),
46-
'ApiClients\Client\GitHub\Schema\CopilotSeatBreakdown' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotSeatBreakdown($payload),
46+
'ApiClients\Client\GitHub\Schema\CopilotOrganizationSeatBreakdown' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotOrganizationSeatBreakdown($payload),
4747
'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload),
4848
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
4949
};
@@ -64,7 +64,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Copi
6464
if (is_array($value)) {
6565
try {
6666
$this->hydrationStack[] = 'seatBreakdown';
67-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotSeatBreakdown($value);
67+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotOrganizationSeatBreakdown($value);
6868
} finally {
6969
array_pop($this->hydrationStack);
7070
}
@@ -154,7 +154,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Copi
154154
}
155155
}
156156

157-
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotSeatBreakdown(array $payload): CopilotSeatBreakdown
157+
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotOrganizationSeatBreakdown(array $payload): CopilotOrganizationSeatBreakdown
158158
{
159159
$properties = [];
160160
$missingFields = [];
@@ -225,17 +225,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Copi
225225

226226
after_inactiveThisCycle:
227227
} catch (Throwable $exception) {
228-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\CopilotSeatBreakdown', $exception, stack: $this->hydrationStack);
228+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\CopilotOrganizationSeatBreakdown', $exception, stack: $this->hydrationStack);
229229
}
230230

231231
if (count($missingFields) > 0) {
232-
throw UnableToHydrateObject::dueToMissingFields(CopilotSeatBreakdown::class, $missingFields, stack: $this->hydrationStack);
232+
throw UnableToHydrateObject::dueToMissingFields(CopilotOrganizationSeatBreakdown::class, $missingFields, stack: $this->hydrationStack);
233233
}
234234

235235
try {
236-
return new CopilotSeatBreakdown(...$properties);
236+
return new CopilotOrganizationSeatBreakdown(...$properties);
237237
} catch (Throwable $exception) {
238-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\CopilotSeatBreakdown', $exception, stack: $this->hydrationStack);
238+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\CopilotOrganizationSeatBreakdown', $exception, stack: $this->hydrationStack);
239239
}
240240
}
241241

@@ -334,7 +334,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
334334
'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object),
335335
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
336336
'ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotOrganizationDetails($object),
337-
'ApiClients\Client\GitHub\Schema\CopilotSeatBreakdown' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotSeatBreakdown($object),
337+
'ApiClients\Client\GitHub\Schema\CopilotOrganizationSeatBreakdown' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotOrganizationSeatBreakdown($object),
338338
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
339339
default => throw new LogicException("No serialization defined for $className"),
340340
};
@@ -404,7 +404,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
404404
$result = [];
405405

406406
$seatBreakdown = $object->seatBreakdown;
407-
$seatBreakdown = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotSeatBreakdown($seatBreakdown);
407+
$seatBreakdown = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotOrganizationSeatBreakdown($seatBreakdown);
408408
after_seatBreakdown: $result['seat_breakdown'] = $seatBreakdown;
409409

410410
$publicCodeSuggestions = $object->publicCodeSuggestions;
@@ -448,9 +448,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
448448
return $result;
449449
}
450450

451-
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotSeatBreakdown(mixed $object): mixed
451+
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CopilotOrganizationSeatBreakdown(mixed $object): mixed
452452
{
453-
assert($object instanceof CopilotSeatBreakdown);
453+
assert($object instanceof CopilotOrganizationSeatBreakdown);
454454
$result = [];
455455

456456
$total = $object->total;

clients/GitHub/src/Internal/Hydrators.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ public function hydrateObject(string $className, array $payload): object
836836
'\\ApiClients\\Client\\GitHub\\Schema\\CodespacesPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀PublicKey()->hydrateObject($className, $payload),
837837
'\\ApiClients\\Client\\GitHub\\Schema\\CodespacesOrgSecret' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀SecretName()->hydrateObject($className, $payload),
838838
'\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Codespaces\\ListSelectedReposForOrgSecret\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀SecretName🌀Repositories()->hydrateObject($className, $payload),
839-
'\\ApiClients\\Client\\GitHub\\Schema\\CopilotOrganizationDetails', '\\ApiClients\\Client\\GitHub\\Schema\\CopilotSeatBreakdown' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing()->hydrateObject($className, $payload),
839+
'\\ApiClients\\Client\\GitHub\\Schema\\CopilotOrganizationDetails', '\\ApiClients\\Client\\GitHub\\Schema\\CopilotOrganizationSeatBreakdown' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing()->hydrateObject($className, $payload),
840840
'\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Copilot\\ListCopilotSeats\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing🌀Seats()->hydrateObject($className, $payload),
841841
'\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Copilot\\AddCopilotSeatsForTeams\\Response\\ApplicationJson\\Created', '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Copilot\\CancelCopilotSeatAssignmentForTeams\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing🌀SelectedTeams()->hydrateObject($className, $payload),
842842
'\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Copilot\\AddCopilotSeatsForUsers\\Response\\ApplicationJson\\Created', '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Copilot\\CancelCopilotSeatAssignmentForUsers\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing🌀SelectedUsers()->hydrateObject($className, $payload),
@@ -1214,7 +1214,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
12141214
'\\ApiClients\\Client\\GitHub\\Schema\\CodespacesPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀PublicKey()->serializeObject($object),
12151215
'\\ApiClients\\Client\\GitHub\\Schema\\CodespacesOrgSecret' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀SecretName()->serializeObject($object),
12161216
'\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Codespaces\\ListSelectedReposForOrgSecret\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀SecretName🌀Repositories()->serializeObject($object),
1217-
'\\ApiClients\\Client\\GitHub\\Schema\\CopilotOrganizationDetails', '\\ApiClients\\Client\\GitHub\\Schema\\CopilotSeatBreakdown' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing()->serializeObject($object),
1217+
'\\ApiClients\\Client\\GitHub\\Schema\\CopilotOrganizationDetails', '\\ApiClients\\Client\\GitHub\\Schema\\CopilotOrganizationSeatBreakdown' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing()->serializeObject($object),
12181218
'\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Copilot\\ListCopilotSeats\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing🌀Seats()->serializeObject($object),
12191219
'\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Copilot\\AddCopilotSeatsForTeams\\Response\\ApplicationJson\\Created', '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Copilot\\CancelCopilotSeatAssignmentForTeams\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing🌀SelectedTeams()->serializeObject($object),
12201220
'\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Copilot\\AddCopilotSeatsForUsers\\Response\\ApplicationJson\\Created', '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Copilot\\CancelCopilotSeatAssignmentForUsers\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Billing🌀SelectedUsers()->serializeObject($object),

clients/GitHub/src/Schema/CopilotOrganizationDetails.php

+13-15
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"type": "object",
2020
"properties": {
2121
"seat_breakdown": {
22-
"title": "Copilot Business Seat Breakdown",
22+
"title": "Copilot Seat Breakdown",
2323
"type": "object",
2424
"properties": {
2525
"total": {
@@ -36,7 +36,7 @@
3636
},
3737
"pending_invitation": {
3838
"type": "integer",
39-
"description": "The number of seats that have been assigned to users that have not yet accepted an invitation to this organization."
39+
"description": "The number of users who have been invited to receive a Copilot seat through this organization."
4040
},
4141
"active_this_cycle": {
4242
"type": "integer",
@@ -53,11 +53,10 @@
5353
"enum": [
5454
"allow",
5555
"block",
56-
"unconfigured",
57-
"unknown"
56+
"unconfigured"
5857
],
5958
"type": "string",
60-
"description": "The organization policy for allowing or disallowing Copilot to make suggestions that match public code."
59+
"description": "The organization policy for allowing or blocking suggestions matching public code (duplication detection filter)."
6160
},
6261
"ide_chat": {
6362
"enum": [
@@ -66,7 +65,7 @@
6665
"unconfigured"
6766
],
6867
"type": "string",
69-
"description": "The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor."
68+
"description": "The organization policy for allowing or disallowing Copilot Chat in the IDE."
7069
},
7170
"platform_chat": {
7271
"enum": [
@@ -75,7 +74,7 @@
7574
"unconfigured"
7675
],
7776
"type": "string",
78-
"description": "The organization policy for allowing or disallowing organization members to use Copilot features within github.com."
77+
"description": "The organization policy for allowing or disallowing Copilot features on GitHub.com."
7978
},
8079
"cli": {
8180
"enum": [
@@ -84,7 +83,7 @@
8483
"unconfigured"
8584
],
8685
"type": "string",
87-
"description": "The organization policy for allowing or disallowing organization members to use Copilot within their CLI."
86+
"description": "The organization policy for allowing or disallowing Copilot in the CLI."
8887
},
8988
"seat_management_setting": {
9089
"enum": [
@@ -99,8 +98,7 @@
9998
"plan_type": {
10099
"enum": [
101100
"business",
102-
"enterprise",
103-
"unknown"
101+
"enterprise"
104102
],
105103
"type": "string",
106104
"description": "The Copilot plan of the organization, or the parent enterprise, when applicable."
@@ -130,15 +128,15 @@
130128

131129
/**
132130
* seatBreakdown: The breakdown of Copilot Business seats for the organization.
133-
* publicCodeSuggestions: The organization policy for allowing or disallowing Copilot to make suggestions that match public code.
134-
* ideChat: The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.
135-
* platformChat: The organization policy for allowing or disallowing organization members to use Copilot features within github.com.
136-
* cli: The organization policy for allowing or disallowing organization members to use Copilot within their CLI.
131+
* publicCodeSuggestions: The organization policy for allowing or blocking suggestions matching public code (duplication detection filter).
132+
* ideChat: The organization policy for allowing or disallowing Copilot Chat in the IDE.
133+
* platformChat: The organization policy for allowing or disallowing Copilot features on GitHub.com.
134+
* cli: The organization policy for allowing or disallowing Copilot in the CLI.
137135
* seatManagementSetting: The mode of assigning new seats.
138136
* planType: The Copilot plan of the organization, or the parent enterprise, when applicable.
139137
*/
140138
public function __construct(#[MapFrom('seat_breakdown')]
141-
public Schema\CopilotSeatBreakdown $seatBreakdown, #[MapFrom('public_code_suggestions')]
139+
public Schema\CopilotOrganizationSeatBreakdown $seatBreakdown, #[MapFrom('public_code_suggestions')]
142140
public string $publicCodeSuggestions, #[MapFrom('ide_chat')]
143141
public string|null $ideChat, #[MapFrom('platform_chat')]
144142
public string|null $platformChat, public string|null $cli, #[MapFrom('seat_management_setting')]

0 commit comments

Comments
 (0)