Skip to content

Commit ca8f399

Browse files
authored
Merge pull request #1221 from php-api-clients/GitHub/from-1.1.4-81b4fcdf6c7b3f61c17f56a0c4f2231d-from-1.1.4-81b4fcdf6c7b3f61c17f56a0c4f2231d
2 parents bb1ebde + 1582b7a commit ca8f399

File tree

645 files changed

+3284
-1287
lines changed

Some content is hidden

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

645 files changed

+3284
-1287
lines changed

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

Lines changed: 699 additions & 691 deletions
Large diffs are not rendered by default.

clients/GitHub/src/Internal/Operator/Users/GetById.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(int $accountId): PrivateUser|PublicUser
2930
{
3031
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Users\GetById($this->responseSchemaValidator, $this->hydrator, $accountId);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(private Routers $routers)
3030
{
3131
}
3232

33-
/** @return |Observable<Schema\IntegrationInstallationRequest>|WithoutBody|Observable<Schema\Installation>|Observable<Schema\BaseGist>|Observable<string>|Observable<Schema\MarketplaceListingPlan>|Observable<Schema\SimpleUser>|Observable<Schema\Email>|Observable<Schema\GpgKey>|Observable<Schema\Issue>|Observable<Schema\Key>|Observable<Schema\UserMarketplacePurchase>|Observable<Schema\Migration>|Observable<Schema\OrganizationSimple>|Observable<Schema\Package>|Observable<Schema\Repository>|Observable<Schema\RepositoryInvitation>|Observable<Schema\SocialAccount>|Observable<Schema\SshSigningKey>|Observable<Schema\MinimalRepository>|Observable<Schema\TeamFull>|Schema\PrivateUser|Schema\PublicUser */
33+
/** @return |Observable<Schema\IntegrationInstallationRequest>|WithoutBody|Observable<Schema\Installation>|Observable<Schema\BaseGist>|Observable<string>|Observable<Schema\MarketplaceListingPlan>|Observable<Schema\SimpleUser>|Observable<Schema\Email>|Observable<Schema\GpgKey>|Observable<Schema\Issue>|Observable<Schema\Key>|Observable<Schema\UserMarketplacePurchase>|Observable<Schema\Migration>|Observable<Schema\OrganizationSimple>|Observable<Schema\Package>|Observable<Schema\Repository>|Observable<Schema\RepositoryInvitation>|Observable<Schema\SocialAccount>|Observable<Schema\SshSigningKey>|Observable<Schema\MinimalRepository>|Observable<Schema\TeamFull> */
3434
public function call(string $call, array $params, array $pathChunks): GlobalAdvisory|iterable|WithoutBody|Integration|ClassroomAssignment|Classroom|CodeOfConduct|GistSimple|Ok|License|OrganizationFull|Project|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|TeamFull|Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|InteractionLimitResponse|One|PrivateUser|PublicUser
3535
{
3636
if ($pathChunks[0] === '') {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ public function listSshSigningKeysForAuthenticatedUser(array $params): iterable|
246246
return $operator->call($arguments['per_page'], $arguments['page']);
247247
}
248248

249+
/** @return */
249250
public function getById(array $params): PrivateUser|PublicUser
250251
{
251252
$arguments = [];

clients/GitHub/src/Operation/Users.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ public function deleteSshSigningKeyForAuthenticatedUser(int $sshSigningKeyId): W
262262
return $this->operators->users👷DeleteSshSigningKeyForAuthenticatedUser()->call($sshSigningKeyId);
263263
}
264264

265+
/** @return */
265266
public function getById(int $accountId): PrivateUser|PublicUser
266267
{
267268
return $this->operators->users👷GetById()->call($accountId);

clients/GitHub/src/PHPStan/ClientCallReturnTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4324,7 +4324,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
43244324
}
43254325

43264326
if ($call === 'GET /user/{account_id}') {
4327-
return $this->typeResolver->resolve('Schema\\PrivateUser|Schema\\PublicUser');
4327+
return $this->typeResolver->resolve('');
43284328
}
43294329

43304330
if ($call === 'GET /users') {

clients/GitHub/src/Schema/Activity.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
},
129129
"id": {
130130
"type": "integer",
131+
"format": "int64",
131132
"examples": [
132133
1
133134
]

clients/GitHub/src/Schema/AddedToProjectIssueEvent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
},
7878
"id": {
7979
"type": "integer",
80+
"format": "int64",
8081
"examples": [
8182
1
8283
]
@@ -306,6 +307,7 @@
306307
},
307308
"id": {
308309
"type": "integer",
310+
"format": "int64",
309311
"examples": [
310312
1
311313
]

clients/GitHub/src/Schema/AliasAbstract/Tiet8DEBB66D/Tiet2A47F452/TietC5A679D6/Tiet5CA4F097.php renamed to clients/GitHub/src/Schema/AliasAbstract/Tiet0D538F96/Tiet4A7F392D/Tiet9191A5B7/Tiet7B6C26BB.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet8DEBB66D\Tiet2A47F452\TietC5A679D6;
5+
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet0D538F96\Tiet4A7F392D\Tiet9191A5B7;
66

77
use ApiClients\Client\GitHub\Schema;
88
use EventSauce\ObjectHydrator\MapFrom;
99

10-
abstract readonly class Tiet5CA4F097
10+
abstract readonly class Tiet7B6C26BB
1111
{
1212
public const SCHEMA_JSON = '{
1313
"title": "Issue",
@@ -1187,7 +1187,8 @@
11871187
"format": "uri"
11881188
},
11891189
"id": {
1190-
"type": "integer"
1190+
"type": "integer",
1191+
"format": "int64"
11911192
},
11921193
"login": {
11931194
"type": "string"

clients/GitHub/src/Schema/AliasAbstract/Tiet4E185393/TietBDA2E772/Tiet8E84BE53/Tiet71E72B6A.php renamed to clients/GitHub/src/Schema/AliasAbstract/Tiet1F36541D/TietE8E8E0D0/TietBA97175F/TietDC150087.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet4E185393\TietBDA2E772\Tiet8E84BE53;
5+
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet1F36541D\TietE8E8E0D0\TietBA97175F;
66

77
use ApiClients\Client\GitHub\Schema;
88

9-
abstract readonly class Tiet71E72B6A
9+
abstract readonly class TietDC150087
1010
{
1111
public const SCHEMA_JSON = '{
1212
"required": [
@@ -695,7 +695,8 @@
695695
"format": "uri"
696696
},
697697
"id": {
698-
"type": "integer"
698+
"type": "integer",
699+
"format": "int64"
699700
},
700701
"login": {
701702
"type": "string"

clients/GitHub/src/Schema/AliasAbstract/TietF981E2A3/Tiet572D23D5/Tiet59F698B6/TietA7292F45.php renamed to clients/GitHub/src/Schema/AliasAbstract/Tiet2669558A/Tiet7306440B/Tiet36530508/Tiet9BD0BA49.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietF981E2A3\Tiet572D23D5\Tiet59F698B6;
5+
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet2669558A\Tiet7306440B\Tiet36530508;
66

77
use ApiClients\Client\GitHub\Schema;
88
use EventSauce\ObjectHydrator\MapFrom;
99

10-
abstract readonly class TietA7292F45
10+
abstract readonly class Tiet9BD0BA49
1111
{
1212
public const SCHEMA_JSON = '{
1313
"title": "Pull Request Review Comment",
@@ -328,7 +328,8 @@
328328
"format": "uri"
329329
},
330330
"id": {
331-
"type": "integer"
331+
"type": "integer",
332+
"format": "int64"
332333
},
333334
"login": {
334335
"type": "string"

clients/GitHub/src/Schema/AliasAbstract/Tiet3BBA3E41/Tiet3A47EA1C/Tiet0F818EF7/Tiet5E474677.php renamed to clients/GitHub/src/Schema/AliasAbstract/Tiet43FD1D88/TietDEAAA799/Tiet01ECA36F/Tiet538E4778.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet3BBA3E41\Tiet3A47EA1C\Tiet0F818EF7;
5+
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet43FD1D88\TietDEAAA799\Tiet01ECA36F;
66

77
use EventSauce\ObjectHydrator\MapFrom;
88

9-
abstract readonly class Tiet5E474677
9+
abstract readonly class Tiet538E4778
1010
{
1111
public const SCHEMA_JSON = '{
1212
"required": [
@@ -140,6 +140,7 @@
140140
},
141141
"id": {
142142
"type": "integer",
143+
"format": "int64",
143144
"examples": [
144145
1
145146
]

clients/GitHub/src/Schema/AliasAbstract/TietC791A23C/Tiet9A6EC3C9/TietA258C668/TietA94C831F.php renamed to clients/GitHub/src/Schema/AliasAbstract/Tiet73D03AC6/Tiet052682E9/Tiet3922826A/Tiet25B9F4B0.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietC791A23C\Tiet9A6EC3C9\TietA258C668;
5+
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet73D03AC6\Tiet052682E9\Tiet3922826A;
66

77
use ApiClients\Client\GitHub\Schema;
88

9-
abstract readonly class TietA94C831F
9+
abstract readonly class Tiet25B9F4B0
1010
{
1111
public const SCHEMA_JSON = '{
1212
"required": [
@@ -734,7 +734,8 @@
734734
"format": "uri"
735735
},
736736
"id": {
737-
"type": "integer"
737+
"type": "integer",
738+
"format": "int64"
738739
},
739740
"login": {
740741
"type": "string"
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet79DD5408\TietA1D90DAB\TietBCA2491F;
6+
7+
use EventSauce\ObjectHydrator\MapFrom;
8+
9+
abstract readonly class Tiet9DC6356F
10+
{
11+
public const SCHEMA_JSON = '{
12+
"title": "User",
13+
"required": [
14+
"login",
15+
"id"
16+
],
17+
"type": [
18+
"object",
19+
"null"
20+
],
21+
"properties": {
22+
"avatar_url": {
23+
"type": "string",
24+
"format": "uri"
25+
},
26+
"deleted": {
27+
"type": "boolean"
28+
},
29+
"email": {
30+
"type": [
31+
"string",
32+
"null"
33+
]
34+
},
35+
"events_url": {
36+
"type": "string",
37+
"format": "uri-template"
38+
},
39+
"followers_url": {
40+
"type": "string",
41+
"format": "uri"
42+
},
43+
"following_url": {
44+
"type": "string",
45+
"format": "uri-template"
46+
},
47+
"gists_url": {
48+
"type": "string",
49+
"format": "uri-template"
50+
},
51+
"gravatar_id": {
52+
"type": "string"
53+
},
54+
"html_url": {
55+
"type": "string",
56+
"format": "uri"
57+
},
58+
"id": {
59+
"type": "integer",
60+
"format": "int64"
61+
},
62+
"login": {
63+
"type": "string"
64+
},
65+
"name": {
66+
"type": "string"
67+
},
68+
"node_id": {
69+
"type": "string"
70+
},
71+
"organizations_url": {
72+
"type": "string",
73+
"format": "uri"
74+
},
75+
"received_events_url": {
76+
"type": "string",
77+
"format": "uri"
78+
},
79+
"repos_url": {
80+
"type": "string",
81+
"format": "uri"
82+
},
83+
"site_admin": {
84+
"type": "boolean"
85+
},
86+
"starred_url": {
87+
"type": "string",
88+
"format": "uri-template"
89+
},
90+
"subscriptions_url": {
91+
"type": "string",
92+
"format": "uri"
93+
},
94+
"type": {
95+
"enum": [
96+
"Bot",
97+
"User",
98+
"Organization",
99+
"Mannequin"
100+
],
101+
"type": "string"
102+
},
103+
"url": {
104+
"type": "string",
105+
"format": "uri"
106+
}
107+
}
108+
}';
109+
public const SCHEMA_TITLE = 'User';
110+
public const SCHEMA_DESCRIPTION = '';
111+
public const SCHEMA_EXAMPLE_DATA = '{
112+
"avatar_url": "https:\\/\\/example.com\\/",
113+
"deleted": false,
114+
"email": "generated",
115+
"events_url": "generated",
116+
"followers_url": "https:\\/\\/example.com\\/",
117+
"following_url": "generated",
118+
"gists_url": "generated",
119+
"gravatar_id": "generated",
120+
"html_url": "https:\\/\\/example.com\\/",
121+
"id": 2,
122+
"login": "generated",
123+
"name": "generated",
124+
"node_id": "generated",
125+
"organizations_url": "https:\\/\\/example.com\\/",
126+
"received_events_url": "https:\\/\\/example.com\\/",
127+
"repos_url": "https:\\/\\/example.com\\/",
128+
"site_admin": false,
129+
"starred_url": "generated",
130+
"subscriptions_url": "https:\\/\\/example.com\\/",
131+
"type": "Mannequin",
132+
"url": "https:\\/\\/example.com\\/"
133+
}';
134+
135+
public function __construct(#[MapFrom('avatar_url')]
136+
public string|null $avatarUrl, public bool|null $deleted, public string|null $email, #[MapFrom('events_url')]
137+
public string|null $eventsUrl, #[MapFrom('followers_url')]
138+
public string|null $followersUrl, #[MapFrom('following_url')]
139+
public string|null $followingUrl, #[MapFrom('gists_url')]
140+
public string|null $gistsUrl, #[MapFrom('gravatar_id')]
141+
public string|null $gravatarId, #[MapFrom('html_url')]
142+
public string|null $htmlUrl, public int $id, public string $login, public string|null $name, #[MapFrom('node_id')]
143+
public string|null $nodeId, #[MapFrom('organizations_url')]
144+
public string|null $organizationsUrl, #[MapFrom('received_events_url')]
145+
public string|null $receivedEventsUrl, #[MapFrom('repos_url')]
146+
public string|null $reposUrl, #[MapFrom('site_admin')]
147+
public bool|null $siteAdmin, #[MapFrom('starred_url')]
148+
public string|null $starredUrl, #[MapFrom('subscriptions_url')]
149+
public string|null $subscriptionsUrl, public string|null $type, public string|null $url,)
150+
{
151+
}
152+
}

clients/GitHub/src/Schema/AliasAbstract/Tiet1558BE01/Tiet18FBFF80/Tiet13044ADE/TietAA645731.php renamed to clients/GitHub/src/Schema/AliasAbstract/Tiet854A455F/Tiet2BB1C81C/Tiet2D8F2395/Tiet76209270.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet1558BE01\Tiet18FBFF80\Tiet13044ADE;
5+
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet854A455F\Tiet2BB1C81C\Tiet2D8F2395;
66

77
use EventSauce\ObjectHydrator\MapFrom;
88

9-
abstract readonly class TietAA645731
9+
abstract readonly class Tiet76209270
1010
{
1111
public const SCHEMA_JSON = '{
1212
"required": [
@@ -100,6 +100,7 @@
100100
},
101101
"id": {
102102
"type": "integer",
103+
"format": "int64",
103104
"examples": [
104105
1
105106
]
@@ -843,6 +844,7 @@
843844
},
844845
"id": {
845846
"type": "integer",
847+
"format": "int64",
846848
"examples": [
847849
1
848850
]

clients/GitHub/src/Schema/AliasAbstract/Tiet4464FF28/Tiet6C0A72F8/Tiet0B27A7A8/Tiet10B71D36.php renamed to clients/GitHub/src/Schema/AliasAbstract/Tiet97141A0A/Tiet7F036F5C/TietE5EDAF51/Tiet1E00A18F.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet4464FF28\Tiet6C0A72F8\Tiet0B27A7A8;
5+
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet97141A0A\Tiet7F036F5C\TietE5EDAF51;
66

77
use ApiClients\Client\GitHub\Internal\Attribute\CastUnionToType\Schema\PendingDeployment\Reviewers\Reviewer;
88
use ApiClients\Client\GitHub\Schema;
99

10-
abstract readonly class Tiet10B71D36
10+
abstract readonly class Tiet1E00A18F
1111
{
1212
public const SCHEMA_JSON = '{
1313
"type": "object",
@@ -69,6 +69,7 @@
6969
},
7070
"id": {
7171
"type": "integer",
72+
"format": "int64",
7273
"examples": [
7374
1
7475
]

0 commit comments

Comments
 (0)