Skip to content

[GitHub] Update to 1.1.4-81b4fcdf6c7b3f61c17f56a0c4f2231d from 1.1.4-4cf5c64422925cf50a90b6e402d5aa38 #1221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,390 changes: 699 additions & 691 deletions clients/GitHub/etc/openapi-client-generator.state

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions clients/GitHub/src/Internal/Operator/Users/GetById.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(int $accountId): PrivateUser|PublicUser
{
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Users\GetById($this->responseSchemaValidator, $this->hydrator, $accountId);
Expand Down
2 changes: 1 addition & 1 deletion clients/GitHub/src/Internal/Router/Get/Three.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(private Routers $routers)
{
}

/** @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 */
/** @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> */
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
{
if ($pathChunks[0] === '') {
Expand Down
1 change: 1 addition & 0 deletions clients/GitHub/src/Internal/Router/Get/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ public function listSshSigningKeysForAuthenticatedUser(array $params): iterable|
return $operator->call($arguments['per_page'], $arguments['page']);
}

/** @return */
public function getById(array $params): PrivateUser|PublicUser
{
$arguments = [];
Expand Down
1 change: 1 addition & 0 deletions clients/GitHub/src/Operation/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ public function deleteSshSigningKeyForAuthenticatedUser(int $sshSigningKeyId): W
return $this->operators->users👷DeleteSshSigningKeyForAuthenticatedUser()->call($sshSigningKeyId);
}

/** @return */
public function getById(int $accountId): PrivateUser|PublicUser
{
return $this->operators->users👷GetById()->call($accountId);
Expand Down
2 changes: 1 addition & 1 deletion clients/GitHub/src/PHPStan/ClientCallReturnTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -4324,7 +4324,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
}

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

if ($call === 'GET /users') {
Expand Down
1 change: 1 addition & 0 deletions clients/GitHub/src/Schema/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
},
"id": {
"type": "integer",
"format": "int64",
"examples": [
1
]
Expand Down
2 changes: 2 additions & 0 deletions clients/GitHub/src/Schema/AddedToProjectIssueEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
},
"id": {
"type": "integer",
"format": "int64",
"examples": [
1
]
Expand Down Expand Up @@ -306,6 +307,7 @@
},
"id": {
"type": "integer",
"format": "int64",
"examples": [
1
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet8DEBB66D\Tiet2A47F452\TietC5A679D6;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet0D538F96\Tiet4A7F392D\Tiet9191A5B7;

use ApiClients\Client\GitHub\Schema;
use EventSauce\ObjectHydrator\MapFrom;

abstract readonly class Tiet5CA4F097
abstract readonly class Tiet7B6C26BB
{
public const SCHEMA_JSON = '{
"title": "Issue",
Expand Down Expand Up @@ -1187,7 +1187,8 @@
"format": "uri"
},
"id": {
"type": "integer"
"type": "integer",
"format": "int64"
},
"login": {
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet4E185393\TietBDA2E772\Tiet8E84BE53;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet1F36541D\TietE8E8E0D0\TietBA97175F;

use ApiClients\Client\GitHub\Schema;

abstract readonly class Tiet71E72B6A
abstract readonly class TietDC150087
{
public const SCHEMA_JSON = '{
"required": [
Expand Down Expand Up @@ -695,7 +695,8 @@
"format": "uri"
},
"id": {
"type": "integer"
"type": "integer",
"format": "int64"
},
"login": {
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietF981E2A3\Tiet572D23D5\Tiet59F698B6;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet2669558A\Tiet7306440B\Tiet36530508;

use ApiClients\Client\GitHub\Schema;
use EventSauce\ObjectHydrator\MapFrom;

abstract readonly class TietA7292F45
abstract readonly class Tiet9BD0BA49
{
public const SCHEMA_JSON = '{
"title": "Pull Request Review Comment",
Expand Down Expand Up @@ -328,7 +328,8 @@
"format": "uri"
},
"id": {
"type": "integer"
"type": "integer",
"format": "int64"
},
"login": {
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet3BBA3E41\Tiet3A47EA1C\Tiet0F818EF7;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet43FD1D88\TietDEAAA799\Tiet01ECA36F;

use EventSauce\ObjectHydrator\MapFrom;

abstract readonly class Tiet5E474677
abstract readonly class Tiet538E4778
{
public const SCHEMA_JSON = '{
"required": [
Expand Down Expand Up @@ -140,6 +140,7 @@
},
"id": {
"type": "integer",
"format": "int64",
"examples": [
1
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietC791A23C\Tiet9A6EC3C9\TietA258C668;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet73D03AC6\Tiet052682E9\Tiet3922826A;

use ApiClients\Client\GitHub\Schema;

abstract readonly class TietA94C831F
abstract readonly class Tiet25B9F4B0
{
public const SCHEMA_JSON = '{
"required": [
Expand Down Expand Up @@ -734,7 +734,8 @@
"format": "uri"
},
"id": {
"type": "integer"
"type": "integer",
"format": "int64"
},
"login": {
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet79DD5408\TietA1D90DAB\TietBCA2491F;

use EventSauce\ObjectHydrator\MapFrom;

abstract readonly class Tiet9DC6356F
{
public const SCHEMA_JSON = '{
"title": "User",
"required": [
"login",
"id"
],
"type": [
"object",
"null"
],
"properties": {
"avatar_url": {
"type": "string",
"format": "uri"
},
"deleted": {
"type": "boolean"
},
"email": {
"type": [
"string",
"null"
]
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"gravatar_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"id": {
"type": "integer",
"format": "int64"
},
"login": {
"type": "string"
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"site_admin": {
"type": "boolean"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"type": {
"enum": [
"Bot",
"User",
"Organization",
"Mannequin"
],
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
}
}';
public const SCHEMA_TITLE = 'User';
public const SCHEMA_DESCRIPTION = '';
public const SCHEMA_EXAMPLE_DATA = '{
"avatar_url": "https:\\/\\/example.com\\/",
"deleted": false,
"email": "generated",
"events_url": "generated",
"followers_url": "https:\\/\\/example.com\\/",
"following_url": "generated",
"gists_url": "generated",
"gravatar_id": "generated",
"html_url": "https:\\/\\/example.com\\/",
"id": 2,
"login": "generated",
"name": "generated",
"node_id": "generated",
"organizations_url": "https:\\/\\/example.com\\/",
"received_events_url": "https:\\/\\/example.com\\/",
"repos_url": "https:\\/\\/example.com\\/",
"site_admin": false,
"starred_url": "generated",
"subscriptions_url": "https:\\/\\/example.com\\/",
"type": "Mannequin",
"url": "https:\\/\\/example.com\\/"
}';

public function __construct(#[MapFrom('avatar_url')]
public string|null $avatarUrl, public bool|null $deleted, public string|null $email, #[MapFrom('events_url')]
public string|null $eventsUrl, #[MapFrom('followers_url')]
public string|null $followersUrl, #[MapFrom('following_url')]
public string|null $followingUrl, #[MapFrom('gists_url')]
public string|null $gistsUrl, #[MapFrom('gravatar_id')]
public string|null $gravatarId, #[MapFrom('html_url')]
public string|null $htmlUrl, public int $id, public string $login, public string|null $name, #[MapFrom('node_id')]
public string|null $nodeId, #[MapFrom('organizations_url')]
public string|null $organizationsUrl, #[MapFrom('received_events_url')]
public string|null $receivedEventsUrl, #[MapFrom('repos_url')]
public string|null $reposUrl, #[MapFrom('site_admin')]
public bool|null $siteAdmin, #[MapFrom('starred_url')]
public string|null $starredUrl, #[MapFrom('subscriptions_url')]
public string|null $subscriptionsUrl, public string|null $type, public string|null $url,)
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet1558BE01\Tiet18FBFF80\Tiet13044ADE;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet854A455F\Tiet2BB1C81C\Tiet2D8F2395;

use EventSauce\ObjectHydrator\MapFrom;

abstract readonly class TietAA645731
abstract readonly class Tiet76209270
{
public const SCHEMA_JSON = '{
"required": [
Expand Down Expand Up @@ -100,6 +100,7 @@
},
"id": {
"type": "integer",
"format": "int64",
"examples": [
1
]
Expand Down Expand Up @@ -843,6 +844,7 @@
},
"id": {
"type": "integer",
"format": "int64",
"examples": [
1
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet4464FF28\Tiet6C0A72F8\Tiet0B27A7A8;
namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet97141A0A\Tiet7F036F5C\TietE5EDAF51;

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

abstract readonly class Tiet10B71D36
abstract readonly class Tiet1E00A18F
{
public const SCHEMA_JSON = '{
"type": "object",
Expand Down Expand Up @@ -69,6 +69,7 @@
},
"id": {
"type": "integer",
"format": "int64",
"examples": [
1
]
Expand Down
Loading
Loading