Skip to content

Commit f6ccc45

Browse files
authored
Merge pull request #1088 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-23d08a3e03ef26af7beff559f3988932-from-1.1.4-23d08a3e03ef26af7beff559f3988932
2 parents c88d529 + 2fa9487 commit f6ccc45

File tree

18 files changed

+137
-47
lines changed

18 files changed

+137
-47
lines changed

clients/GitHubEnterpriseCloud/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": "9e2a14ab3b4428c74cab67107599dac3",
2+
"specHash": "23d08a3e03ef26af7beff559f3988932",
33
"generatedFiles": {
44
"files": [
55
{
@@ -6136,7 +6136,7 @@
61366136
},
61376137
{
61386138
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Orgs.php",
6139-
"hash": "d583cdde9847a86367c3cdfcc56089a7"
6139+
"hash": "272146cf453d37eab96fddc8acd64dc7"
61406140
},
61416141
{
61426142
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Oidc.php",
@@ -6168,7 +6168,7 @@
61686168
},
61696169
{
61706170
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php",
6171-
"hash": "f68d001cec888c733957ddd5e2cb18b3"
6171+
"hash": "22159e12b2050c976d15328c9a8c8a0d"
61726172
},
61736173
{
61746174
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -13956,7 +13956,7 @@
1395613956
},
1395713957
{
1395813958
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php",
13959-
"hash": "4d80e869fcb6bb7e2426f98f2c934e71"
13959+
"hash": "88ad22fa6ec99c5af4f31d6af65647d0"
1396013960
},
1396113961
{
1396213962
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Organization.php",
@@ -14004,7 +14004,7 @@
1400414004
},
1400514005
{
1400614006
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Copilot.php",
14007-
"hash": "4fdbc88cd166dc368196fd3aef5f53ed"
14007+
"hash": "797c222dfca645a0cd779e36b823c18c"
1400814008
},
1400914009
{
1401014010
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CheckAutomatedSecurityFixes.php",
@@ -17096,7 +17096,7 @@
1709617096
},
1709717097
{
1709817098
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/CancelCopilotSeatAssignmentForTeams.php",
17099-
"hash": "9b4d63ec795351988ac9f41bcf08c5df"
17099+
"hash": "9390e3d54c109d871f56ad54b1552fda"
1710017100
},
1710117101
{
1710217102
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/CancelCopilotSeatAssignmentForTeamsTest.php",
@@ -17108,7 +17108,7 @@
1710817108
},
1710917109
{
1711017110
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/CancelCopilotSeatAssignmentForUsers.php",
17111-
"hash": "db1a8e85ca72d1f52be63985fff7a5a7"
17111+
"hash": "844adbaaa99ba7265c228b6a12c877a0"
1711217112
},
1711317113
{
1711417114
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/CancelCopilotSeatAssignmentForUsersTest.php",
@@ -28052,7 +28052,7 @@
2805228052
},
2805328053
{
2805428054
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Copilot.php",
28055-
"hash": "f97a06d5b2b4f7f61c3b49a965476fd6"
28055+
"hash": "66787fd2b8248728747bd791a698d706"
2805628056
},
2805728057
{
2805828058
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Pulls.php",
@@ -28128,7 +28128,7 @@
2812828128
},
2812928129
{
2813028130
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Copilot.php",
28131-
"hash": "e2277956c31f1e0dab807c170a28dcb6"
28131+
"hash": "4e865e3b179c511c4e02749355e400cf"
2813228132
},
2813328133
{
2813428134
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/CodeScanning.php",
@@ -28432,7 +28432,7 @@
2843228432
},
2843328433
{
2843428434
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Copilot.php",
28435-
"hash": "8446518306d71bb494096b112d68b13a"
28435+
"hash": "609f735cdcfe90d3cebf8c5026976e66"
2843628436
},
2843728437
{
2843828438
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Reactions.php",
@@ -28544,7 +28544,7 @@
2854428544
},
2854528545
{
2854628546
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
28547-
"hash": "c5e0e3aa606201b77115fdf2151a7d09"
28547+
"hash": "0c73fff643784943f9f446280775e530"
2854828548
},
2854928549
{
2855028550
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
@@ -28568,7 +28568,7 @@
2856828568
},
2856928569
{
2857028570
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php",
28571-
"hash": "c7dcffe1dda7721d5e2c0fc28693e339"
28571+
"hash": "9702b5c77a41bcc78b3d8b8171b796e4"
2857228572
},
2857328573
{
2857428574
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Five.php",
@@ -28680,7 +28680,7 @@
2868028680
},
2868128681
{
2868228682
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php",
28683-
"hash": "bc6403b704b88b09a2a4af7a890e7f0f"
28683+
"hash": "23423303b4599889f96aa0400f9751e8"
2868428684
},
2868528685
{
2868628686
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Eight.php",
@@ -29192,7 +29192,7 @@
2919229192
},
2919329193
{
2919429194
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Billing.php",
29195-
"hash": "3f81d4f0f3097b7e281f2727c3441103"
29195+
"hash": "fdc25c4ee1c7dcca09d87a6cec63912a"
2919629196
},
2919729197
{
2919829198
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Billing\/Seats.php",
@@ -31532,7 +31532,7 @@
3153231532
},
3153331533
{
3153431534
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/GetCopilotSeatDetailsForUser.php",
31535-
"hash": "630df311412461212978a27eb8c53a8d"
31535+
"hash": "106fe77032525b3621f32edd879aef50"
3153631536
},
3153731537
{
3153831538
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/GetCopilotSeatDetailsForUserTest.php",
@@ -31808,11 +31808,11 @@
3180831808
},
3180931809
{
3181031810
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
31811-
"hash": "b3a6953cc0bbb6defc0b54d5e93bc74a"
31811+
"hash": "8d4c6bba384c321e1c471455261dea31"
3181231812
},
3181331813
{
3181431814
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
31815-
"hash": "84f33ec1f5a413b95ffa3e1446aa695c"
31815+
"hash": "6fd5cfe80262fa8052a8d91247518f70"
3181631816
},
3181731817
{
3181831818
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -32760,7 +32760,7 @@
3276032760
},
3276132761
{
3276232762
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/AddCopilotSeatsForTeams.php",
32763-
"hash": "b9291ad495f31c027e6c7da65e0526d1"
32763+
"hash": "df19b4343141a797cdfdff6c0e445bd4"
3276432764
},
3276532765
{
3276632766
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/AddCopilotSeatsForTeamsTest.php",
@@ -32772,7 +32772,7 @@
3277232772
},
3277332773
{
3277432774
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/AddCopilotSeatsForUsers.php",
32775-
"hash": "d490bbc8c0cc40acbc0ba01350d84d52"
32775+
"hash": "5dee0e6c20cf6cd79d88f20b3c6fd9a0"
3277632776
},
3277732777
{
3277832778
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/AddCopilotSeatsForUsersTest.php",

clients/GitHubEnterpriseCloud/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⚡️GitHubEnterpriseCloud⚡️S
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⚡️GitHubEnterpriseClou
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/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Copilot\AddCopilotSeatsForTeams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Copilot\AddCopilotSeatsForUsers($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Copilot\CancelCopilotSeatAssignmentForTeams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Copilot\CancelCopilotSeatAssignmentForUsers($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Copilot\GetCopilotSeatDetailsForUser($this->responseSchemaValidator, $this->hydrator, $org, $username);

clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/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)