Skip to content

Commit c88d529

Browse files
authored
Merge pull request #1087 from php-api-clients/GitHub/from-1.1.4-b854ef7598e090ed26841c01372b8bfc-from-1.1.4-b854ef7598e090ed26841c01372b8bfc
2 parents 2efc20a + 6c56945 commit c88d529

18 files changed

+137
-47
lines changed

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

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "0ce29cf47507c27c2ad15c4d8fd4cd59",
2+
"specHash": "b854ef7598e090ed26841c01372b8bfc",
33
"generatedFiles": {
44
"files": [
55
{
@@ -5764,7 +5764,7 @@
57645764
},
57655765
{
57665766
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Orgs.php",
5767-
"hash": "685b16a5a816f4389299a7d6aac50a45"
5767+
"hash": "0725ce6d6c3f5c8f8c8a084acf37ea9e"
57685768
},
57695769
{
57705770
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php",
@@ -5800,7 +5800,7 @@
58005800
},
58015801
{
58025802
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php",
5803-
"hash": "b522e0addffa1373167ea9859cacca39"
5803+
"hash": "431da1a2adf36d781376be3c9313eeed"
58045804
},
58055805
{
58065806
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -13484,7 +13484,7 @@
1348413484
},
1348513485
{
1348613486
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php",
13487-
"hash": "3fbad7a145df80dfecbe4f7a154866e0"
13487+
"hash": "0609c00665283fb0720f16bc99656890"
1348813488
},
1348913489
{
1349013490
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Organization.php",
@@ -13532,7 +13532,7 @@
1353213532
},
1353313533
{
1353413534
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Copilot.php",
13535-
"hash": "ac81819378d149a4f46c93378afedd03"
13535+
"hash": "e0cc356b1c65d6fecc88aa7e99443b5f"
1353613536
},
1353713537
{
1353813538
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CheckAutomatedSecurityFixes.php",
@@ -15864,7 +15864,7 @@
1586415864
},
1586515865
{
1586615866
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/CancelCopilotSeatAssignmentForTeams.php",
15867-
"hash": "07f67673c8fdd950d261b12dc41a935e"
15867+
"hash": "0fada24ffa7a87836303edde6dd287d7"
1586815868
},
1586915869
{
1587015870
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/CancelCopilotSeatAssignmentForTeamsTest.php",
@@ -15876,7 +15876,7 @@
1587615876
},
1587715877
{
1587815878
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/CancelCopilotSeatAssignmentForUsers.php",
15879-
"hash": "52c12f6ee87ee9da7a9342197d8b092b"
15879+
"hash": "78fba20485728fa3105c20eeed90cd08"
1588015880
},
1588115881
{
1588215882
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/CancelCopilotSeatAssignmentForUsersTest.php",
@@ -26416,7 +26416,7 @@
2641626416
},
2641726417
{
2641826418
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Copilot.php",
26419-
"hash": "de36470a2d76f638e9f5aba29b1d45b1"
26419+
"hash": "de101f2a28dfd183d9a00183530622a8"
2642026420
},
2642126421
{
2642226422
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Pulls.php",
@@ -26484,7 +26484,7 @@
2648426484
},
2648526485
{
2648626486
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Copilot.php",
26487-
"hash": "ffb7b2d291460d684ab03260ee97b5dd"
26487+
"hash": "2b8c221262126a849ba449b013b4f969"
2648826488
},
2648926489
{
2649026490
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/CodeScanning.php",
@@ -26752,7 +26752,7 @@
2675226752
},
2675326753
{
2675426754
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Copilot.php",
26755-
"hash": "399517602ac79ee1353886207ffc7024"
26755+
"hash": "85247d71c0d10e99b1876880d4845f6e"
2675626756
},
2675726757
{
2675826758
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Reactions.php",
@@ -26856,7 +26856,7 @@
2685626856
},
2685726857
{
2685826858
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
26859-
"hash": "a0fc75804a3779e1d92c5030006b0567"
26859+
"hash": "fa2bdbb8035a1b940cc7c023119de3e3"
2686026860
},
2686126861
{
2686226862
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
@@ -26880,7 +26880,7 @@
2688026880
},
2688126881
{
2688226882
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php",
26883-
"hash": "4ff81782a8af7b29adb0619772ab1367"
26883+
"hash": "be69e0def1a7f6eeaf5571c6b08fc523"
2688426884
},
2688526885
{
2688626886
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Five.php",
@@ -26996,7 +26996,7 @@
2699626996
},
2699726997
{
2699826998
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php",
26999-
"hash": "6b8fb774a276aa730d87061c6f4227e9"
26999+
"hash": "09a2bed1a37caf62b39ff4a1d59e8c58"
2700027000
},
2700127001
{
2700227002
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Eight.php",
@@ -27384,7 +27384,7 @@
2738427384
},
2738527385
{
2738627386
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Billing.php",
27387-
"hash": "0038c6dc5f7bfd9500b08bc9a1d54592"
27387+
"hash": "41b90ca0aa56ab48fe33620ef2756706"
2738827388
},
2738927389
{
2739027390
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Billing\/Seats.php",
@@ -29432,7 +29432,7 @@
2943229432
},
2943329433
{
2943429434
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/GetCopilotSeatDetailsForUser.php",
29435-
"hash": "498e2fe6ebcd28eb13b86df4ac88d690"
29435+
"hash": "946306058b2a5696384dfe6ad2d32a41"
2943629436
},
2943729437
{
2943829438
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/GetCopilotSeatDetailsForUserTest.php",
@@ -29708,11 +29708,11 @@
2970829708
},
2970929709
{
2971029710
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
29711-
"hash": "a9326d5371dc4c031f437a7f2477a95a"
29711+
"hash": "deef79abe0f45342aaf83a90f84ecb93"
2971229712
},
2971329713
{
2971429714
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
29715-
"hash": "d73e40922d2d19a9a307e6838530a297"
29715+
"hash": "991da0fe5ffea896a5600ac51aae08c8"
2971629716
},
2971729717
{
2971829718
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -30648,7 +30648,7 @@
3064830648
},
3064930649
{
3065030650
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/AddCopilotSeatsForTeams.php",
30651-
"hash": "849e70804fa156fe5fedd56d5f352cf5"
30651+
"hash": "fe1e8a6c90e75086172c67b4d5bdd723"
3065230652
},
3065330653
{
3065430654
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/AddCopilotSeatsForTeamsTest.php",
@@ -30660,7 +30660,7 @@
3066030660
},
3066130661
{
3066230662
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/AddCopilotSeatsForUsers.php",
30663-
"hash": "3e03afcc4748ecf35f0ba3ed26d6d0a8"
30663+
"hash": "f146c9e1f82c32664772b7861f871980"
3066430664
},
3066530665
{
3066630666
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/AddCopilotSeatsForUsersTest.php",

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

Lines changed: 47 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,38 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Copi
8585

8686
after_publicCodeSuggestions:
8787

88-
$value = $payload['copilot_chat'] ?? null;
88+
$value = $payload['ide_chat'] ?? null;
8989

9090
if ($value === null) {
91-
$properties['copilotChat'] = null;
92-
goto after_copilotChat;
91+
$properties['ideChat'] = null;
92+
goto after_ideChat;
9393
}
9494

95-
$properties['copilotChat'] = $value;
95+
$properties['ideChat'] = $value;
9696

97-
after_copilotChat:
97+
after_ideChat:
98+
99+
$value = $payload['platform_chat'] ?? null;
100+
101+
if ($value === null) {
102+
$properties['platformChat'] = null;
103+
goto after_platformChat;
104+
}
105+
106+
$properties['platformChat'] = $value;
107+
108+
after_platformChat:
109+
110+
$value = $payload['cli'] ?? null;
111+
112+
if ($value === null) {
113+
$properties['cli'] = null;
114+
goto after_cli;
115+
}
116+
117+
$properties['cli'] = $value;
118+
119+
after_cli:
98120

99121
$value = $payload['seat_management_setting'] ?? null;
100122

@@ -377,13 +399,29 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
377399
$publicCodeSuggestions = $object->publicCodeSuggestions;
378400
after_publicCodeSuggestions: $result['public_code_suggestions'] = $publicCodeSuggestions;
379401

380-
$copilotChat = $object->copilotChat;
402+
$ideChat = $object->ideChat;
403+
404+
if ($ideChat === null) {
405+
goto after_ideChat;
406+
}
407+
408+
after_ideChat: $result['ide_chat'] = $ideChat;
409+
410+
$platformChat = $object->platformChat;
411+
412+
if ($platformChat === null) {
413+
goto after_platformChat;
414+
}
415+
416+
after_platformChat: $result['platform_chat'] = $platformChat;
417+
418+
$cli = $object->cli;
381419

382-
if ($copilotChat === null) {
383-
goto after_copilotChat;
420+
if ($cli === null) {
421+
goto after_cli;
384422
}
385423

386-
after_copilotChat: $result['copilot_chat'] = $copilotChat;
424+
after_cli: $result['cli'] = $cli;
387425

388426
$seatManagementSetting = $object->seatManagementSetting;
389427
after_seatManagementSetting: $result['seat_management_setting'] = $seatManagementSetting;

clients/GitHub/src/Internal/Operator/Copilot/AddCopilotSeatsForTeams.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2525
{
2626
}
2727

28+
/** @return */
2829
public function call(string $org, array $params): Created|WithoutBody
2930
{
3031
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\AddCopilotSeatsForTeams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHub/src/Internal/Operator/Copilot/AddCopilotSeatsForUsers.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2525
{
2626
}
2727

28+
/** @return */
2829
public function call(string $org, array $params): Json|WithoutBody
2930
{
3031
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\AddCopilotSeatsForUsers($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHub/src/Internal/Operator/Copilot/CancelCopilotSeatAssignmentForTeams.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2525
{
2626
}
2727

28+
/** @return */
2829
public function call(string $org, array $params): Ok|WithoutBody
2930
{
3031
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\CancelCopilotSeatAssignmentForTeams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHub/src/Internal/Operator/Copilot/CancelCopilotSeatAssignmentForUsers.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2525
{
2626
}
2727

28+
/** @return */
2829
public function call(string $org, array $params): Json|WithoutBody
2930
{
3031
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\CancelCopilotSeatAssignmentForUsers($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHub/src/Internal/Operator/Copilot/GetCopilotSeatDetailsForUser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2525
{
2626
}
2727

28+
/** @return */
2829
public function call(string $org, string $username): CopilotSeatDetails|WithoutBody
2930
{
3031
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Copilot\GetCopilotSeatDetailsForUser($this->responseSchemaValidator, $this->hydrator, $org, $username);

clients/GitHub/src/Internal/Router/Delete/Copilot.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri
2121
{
2222
}
2323

24+
/** @return */
2425
public function cancelCopilotSeatAssignmentForTeams(array $params): Ok|WithoutBody
2526
{
2627
$arguments = [];
@@ -35,6 +36,7 @@ public function cancelCopilotSeatAssignmentForTeams(array $params): Ok|WithoutBo
3536
return $operator->call($arguments['org'], $params);
3637
}
3738

39+
/** @return */
3840
public function cancelCopilotSeatAssignmentForUsers(array $params): Json|WithoutBody
3941
{
4042
$arguments = [];

clients/GitHub/src/Internal/Router/Delete/Six.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public function __construct(private Routers $routers)
1818
{
1919
}
2020

21-
/** @return |Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json */
2221
public function call(string $call, array $params, array $pathChunks): WithoutBody|Ok|Json|ActionsCacheList|FileCommit
2322
{
2423
if ($pathChunks[0] === '') {

clients/GitHub/src/Internal/Router/Get/Copilot.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function listCopilotSeats(array $params): Ok
6464
return $operator->call($arguments['org'], $arguments['page'], $arguments['per_page']);
6565
}
6666

67+
/** @return */
6768
public function getCopilotSeatDetailsForUser(array $params): CopilotSeatDetails|WithoutBody
6869
{
6970
$arguments = [];

0 commit comments

Comments
 (0)