Skip to content

Commit 9741078

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHub] Update to 1.1.4-b8769452718d6d7793dc313b1b4aae02 from 1.1.4-2b790a7412799c3a2996ba936824dd7d
Detected Schema changes: ``` ├─┬Paths │ ├─┬/orgs/{org}/copilot/billing │ │ └─┬GET │ │ └──[🔀] description (8338:20) │ ├─┬/orgs/{org}/personal-access-tokens │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ └──[🔀] value (206614:7) │ ├─┬/orgs/{org}/members/{username}/copilot │ │ └─┬GET │ │ └──[🔀] description (10999:20) │ ├─┬/orgs/{org}/copilot/billing/seats │ │ └─┬GET │ │ └──[🔀] description (8385:20) │ ├─┬/orgs/{org}/personal-access-token-requests │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ └──[🔀] value (206579:7) │ ├─┬/enterprises/{enterprise}/copilot/billing/seats │ │ └─┬GET │ │ └──[🔀] description (1441:20) │ ├─┬/orgs/{org}/copilot/billing/selected_teams │ │ ├─┬POST │ │ │ ├──[🔀] description (8447:20) │ │ │ └─┬Responses │ │ │ └─┬201 │ │ │ └─┬application/json │ │ │ └─┬Schema │ │ │ └──[🔀] description (8501:30) │ │ └─┬DELETE │ │ ├──[🔀] description (8531:20) │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬Schema │ │ └──[🔀] description (8583:30) │ ├─┬/orgs/{org}/copilot/billing/selected_users │ │ ├─┬POST │ │ │ ├──[🔀] description (8614:20) │ │ │ └─┬Responses │ │ │ └─┬201 │ │ │ └─┬application/json │ │ │ └─┬Schema │ │ │ └──[🔀] description (8668:30) │ │ └─┬DELETE │ │ ├──[🔀] description (8698:20) │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬Schema │ │ └──[🔀] description (8750:30) │ ├─┬/repos/{owner}/{repo}/keys │ │ ├─┬GET │ │ │ └─┬Responses │ │ │ └─┬200 │ │ │ └─┬application/json │ │ │ └─┬default │ │ │ └──[🔀] value (216736:7) │ │ └─┬POST │ │ └─┬Responses │ │ └─┬201 │ │ └─┬application/json │ │ └─┬default │ │ ├──[🔀] value (216747:9) │ │ ├──[🔀] value (216747:9) │ │ ├──[🔀] value (216747:9) │ │ ├──[🔀] value (216747:9) │ │ ├──[🔀] value (216747:9) │ │ ├──[🔀] value (216747:9) │ │ ├──[🔀] value (216747:9) │ │ └──[➖] value (216796:9) │ ├─┬/repos/{owner}/{repo}/keys/{key_id} │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ ├──[🔀] value (216747:9) │ │ ├──[🔀] value (216747:9) │ │ ├──[🔀] value (216747:9) │ │ ├──[🔀] value (216747:9) │ │ ├──[🔀] value (216747:9) │ │ ├──[🔀] value (216747:9) │ │ ├──[🔀] value (216747:9) │ │ └──[➖] value (216796:9) │ └─┬/orgs/{org} │ ├─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default-response │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ └──[➖] value (203478:9) │ └─┬PATCH │ ├─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ ├──[🔀] value (203433:9) │ │ └──[➖] value (203478:9) │ └─┬Requestbody │ └─┬application/json │ └─┬Schema │ └──[➖] properties (4291:17)❌ └─┬Components ├─┬organization-programmatic-access-grant-request │ ├──[➖] required (74954:9)❌ │ └──[➖] properties (74925:9)❌ ├─┬organization-programmatic-access-grant │ ├──[➖] required (75035:9)❌ │ └──[➖] properties (75007:9)❌ ├─┬personal-access-token-request │ ├──[➖] required (97011:9)❌ │ └──[➖] properties (96980:9)❌ ├─┬deploy-key │ └──[➖] properties (87202:9)❌ ├─┬webhooks_deploy_key │ └──[➖] properties (93072:9)❌ └─┬organization-full └──[➖] properties (72586:9)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 124 | 1 | | components | 9 | 9 | Date: 11/05/24 | Commit: New: etc/specs/GitHub/previous.spec.yaml, Original: etc/specs/GitHub/current.spec.yaml - ❌ **BREAKING Changes**: _10_ out of _133_ - **Modifications**: _119_ - **Removals**: _14_ - **Breaking Removals**: _10_ ERROR: breaking changes discovered
1 parent efb30b6 commit 9741078

File tree

49 files changed

+457
-257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+457
-257
lines changed

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

Lines changed: 48 additions & 64 deletions
Large diffs are not rendered by default.

clients/GitHub/src/Client.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

clients/GitHub/src/ClientInterface.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Orga
689689
$properties['archivedAt'] = $value;
690690

691691
after_archivedAt:
692+
693+
$value = $payload['deploy_keys_enabled_for_repositories'] ?? null;
694+
695+
if ($value === null) {
696+
$properties['deployKeysEnabledForRepositories'] = null;
697+
goto after_deployKeysEnabledForRepositories;
698+
}
699+
700+
$properties['deployKeysEnabledForRepositories'] = $value;
701+
702+
after_deployKeysEnabledForRepositories:
692703
} catch (Throwable $exception) {
693704
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\OrganizationFull', $exception, stack: $this->hydrationStack);
694705
}
@@ -1294,6 +1305,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
12941305

12951306
after_archivedAt: $result['archived_at'] = $archivedAt;
12961307

1308+
$deployKeysEnabledForRepositories = $object->deployKeysEnabledForRepositories;
1309+
1310+
if ($deployKeysEnabledForRepositories === null) {
1311+
goto after_deployKeysEnabledForRepositories;
1312+
}
1313+
1314+
after_deployKeysEnabledForRepositories: $result['deploy_keys_enabled_for_repositories'] = $deployKeysEnabledForRepositories;
1315+
12971316
return $result;
12981317
}
12991318

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

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
namespace ApiClients\Client\GitHub\Internal\Hydrator\Operation\Orgs\Org\Copilot\Billing;
66

77
use ApiClients\Client\GitHub\Schema\BasicError;
8-
use ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created\Application\Json;
8+
use ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created;
9+
use ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok;
910
use EventSauce\ObjectHydrator\IterableList;
1011
use EventSauce\ObjectHydrator\ObjectMapper;
1112
use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems;
@@ -39,14 +40,14 @@ public function __construct()
3940
public function hydrateObject(string $className, array $payload): object
4041
{
4142
return match ($className) {
42-
'ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created\Application\Json' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️AddCopilotSeatsForUsers⚡️Response⚡️ApplicationJson⚡️Created⚡️Application⚡️Json($payload),
43+
'ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️AddCopilotSeatsForUsers⚡️Response⚡️ApplicationJson⚡️Created($payload),
4344
'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload),
44-
'ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️CancelCopilotSeatAssignmentForUsers⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($payload),
45+
'ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️CancelCopilotSeatAssignmentForUsers⚡️Response⚡️ApplicationJson⚡️Ok($payload),
4546
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
4647
};
4748
}
4849

49-
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️AddCopilotSeatsForUsers⚡️Response⚡️ApplicationJson⚡️Created⚡️Application⚡️Json(array $payload): Json
50+
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️AddCopilotSeatsForUsers⚡️Response⚡️ApplicationJson⚡️Created(array $payload): Created
5051
{
5152
$properties = [];
5253
$missingFields = [];
@@ -62,17 +63,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Oper
6263

6364
after_seatsCreated:
6465
} catch (Throwable $exception) {
65-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created\Application\Json', $exception, stack: $this->hydrationStack);
66+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created', $exception, stack: $this->hydrationStack);
6667
}
6768

6869
if (count($missingFields) > 0) {
69-
throw UnableToHydrateObject::dueToMissingFields(Json::class, $missingFields, stack: $this->hydrationStack);
70+
throw UnableToHydrateObject::dueToMissingFields(Created::class, $missingFields, stack: $this->hydrationStack);
7071
}
7172

7273
try {
73-
return new Json(...$properties);
74+
return new Created(...$properties);
7475
} catch (Throwable $exception) {
75-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created\Application\Json', $exception, stack: $this->hydrationStack);
76+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created', $exception, stack: $this->hydrationStack);
7677
}
7778
}
7879

@@ -139,7 +140,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Basi
139140
}
140141
}
141142

142-
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️CancelCopilotSeatAssignmentForUsers⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(array $payload): \ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json
143+
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️CancelCopilotSeatAssignmentForUsers⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok
143144
{
144145
$properties = [];
145146
$missingFields = [];
@@ -155,17 +156,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Oper
155156

156157
after_seatsCancelled:
157158
} catch (Throwable $exception) {
158-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json', $exception, stack: $this->hydrationStack);
159+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack);
159160
}
160161

161162
if (count($missingFields) > 0) {
162-
throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json::class, $missingFields, stack: $this->hydrationStack);
163+
throw UnableToHydrateObject::dueToMissingFields(Ok::class, $missingFields, stack: $this->hydrationStack);
163164
}
164165

165166
try {
166-
return new \ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json(...$properties);
167+
return new Ok(...$properties);
167168
} catch (Throwable $exception) {
168-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json', $exception, stack: $this->hydrationStack);
169+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack);
169170
}
170171
}
171172

@@ -200,9 +201,9 @@ public function serializeObjectOfType(object $object, string $className): mixed
200201
'DateTime' => $this->serializeValueDateTime($object),
201202
'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object),
202203
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
203-
'ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created\Application\Json' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️AddCopilotSeatsForUsers⚡️Response⚡️ApplicationJson⚡️Created⚡️Application⚡️Json($object),
204+
'ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️AddCopilotSeatsForUsers⚡️Response⚡️ApplicationJson⚡️Created($object),
204205
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
205-
'ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️CancelCopilotSeatAssignmentForUsers⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($object),
206+
'ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️CancelCopilotSeatAssignmentForUsers⚡️Response⚡️ApplicationJson⚡️Ok($object),
206207
default => throw new LogicException("No serialization defined for $className"),
207208
};
208209
} catch (Throwable $exception) {
@@ -265,9 +266,9 @@ private function serializeValueDateTimeInterface(mixed $value): mixed
265266
return $serializer->serialize($value, $this);
266267
}
267268

268-
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️AddCopilotSeatsForUsers⚡️Response⚡️ApplicationJson⚡️Created⚡️Application⚡️Json(mixed $object): mixed
269+
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️AddCopilotSeatsForUsers⚡️Response⚡️ApplicationJson⚡️Created(mixed $object): mixed
269270
{
270-
assert($object instanceof Json);
271+
assert($object instanceof Created);
271272
$result = [];
272273

273274
$seatsCreated = $object->seatsCreated;
@@ -316,9 +317,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
316317
return $result;
317318
}
318319

319-
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️CancelCopilotSeatAssignmentForUsers⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(mixed $object): mixed
320+
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Copilot⚡️CancelCopilotSeatAssignmentForUsers⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed
320321
{
321-
assert($object instanceof \ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json);
322+
assert($object instanceof Ok);
322323
$result = [];
323324

324325
$seatsCancelled = $object->seatsCancelled;

clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Keys.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Depl
148148
$properties['lastUsed'] = $value;
149149

150150
after_lastUsed:
151+
152+
$value = $payload['enabled'] ?? null;
153+
154+
if ($value === null) {
155+
$properties['enabled'] = null;
156+
goto after_enabled;
157+
}
158+
159+
$properties['enabled'] = $value;
160+
161+
after_enabled:
151162
} catch (Throwable $exception) {
152163
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\DeployKey', $exception, stack: $this->hydrationStack);
153164
}
@@ -352,6 +363,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
352363

353364
after_lastUsed: $result['last_used'] = $lastUsed;
354365

366+
$enabled = $object->enabled;
367+
368+
if ($enabled === null) {
369+
goto after_enabled;
370+
}
371+
372+
after_enabled: $result['enabled'] = $enabled;
373+
355374
return $result;
356375
}
357376

clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Keys/KeyId.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Depl
148148
$properties['lastUsed'] = $value;
149149

150150
after_lastUsed:
151+
152+
$value = $payload['enabled'] ?? null;
153+
154+
if ($value === null) {
155+
$properties['enabled'] = null;
156+
goto after_enabled;
157+
}
158+
159+
$properties['enabled'] = $value;
160+
161+
after_enabled:
151162
} catch (Throwable $exception) {
152163
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\DeployKey', $exception, stack: $this->hydrationStack);
153164
}
@@ -363,6 +374,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
363374

364375
after_lastUsed: $result['last_used'] = $lastUsed;
365376

377+
$enabled = $object->enabled;
378+
379+
if ($enabled === null) {
380+
goto after_enabled;
381+
}
382+
383+
after_enabled: $result['enabled'] = $enabled;
384+
366385
return $result;
367386
}
368387

clients/GitHub/src/Internal/Hydrator/WebHook/DeployKey.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
493493
$properties['verified'] = $value;
494494

495495
after_verified:
496+
497+
$value = $payload['enabled'] ?? null;
498+
499+
if ($value === null) {
500+
$properties['enabled'] = null;
501+
goto after_enabled;
502+
}
503+
504+
$properties['enabled'] = $value;
505+
506+
after_enabled:
496507
} catch (Throwable $exception) {
497508
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhooksDeployKey', $exception, stack: $this->hydrationStack);
498509
}
@@ -3977,6 +3988,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
39773988
$verified = $object->verified;
39783989
after_verified: $result['verified'] = $verified;
39793990

3991+
$enabled = $object->enabled;
3992+
3993+
if ($enabled === null) {
3994+
goto after_enabled;
3995+
}
3996+
3997+
after_enabled: $result['enabled'] = $enabled;
3998+
39803999
return $result;
39814000
}
39824001

clients/GitHub/src/Internal/Hydrator/WebHook/PersonalAccessTokenRequest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Pers
359359

360360
after_tokenId:
361361

362+
$value = $payload['token_name'] ?? null;
363+
364+
if ($value === null) {
365+
$missingFields[] = 'token_name';
366+
goto after_tokenName;
367+
}
368+
369+
$properties['tokenName'] = $value;
370+
371+
after_tokenName:
372+
362373
$value = $payload['token_expired'] ?? null;
363374

364375
if ($value === null) {
@@ -1992,6 +2003,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
19922003
$tokenId = $object->tokenId;
19932004
after_tokenId: $result['token_id'] = $tokenId;
19942005

2006+
$tokenName = $object->tokenName;
2007+
after_tokenName: $result['token_name'] = $tokenName;
2008+
19952009
$tokenExpired = $object->tokenExpired;
19962010
after_tokenExpired: $result['token_expired'] = $tokenExpired;
19972011

0 commit comments

Comments
 (0)