Skip to content

[GitHub] Update to 1.1.4-c6249831ad99957f8d160f21b8d426dd from 1.1.4-24f4c3ebacf1ca5821698e28d77d32d1 #1311

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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions clients/GitHub/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "24f4c3ebacf1ca5821698e28d77d32d1",
"specHash": "c6249831ad99957f8d160f21b8d426dd",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -5576,7 +5576,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Orgs.php",
"hash": "a471065365c30c5de2e67c9b59762318"
"hash": "969f2d59467f854edc18a940b109cab4"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php",
Expand Down Expand Up @@ -11668,15 +11668,15 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php",
"hash": "c7942b67efff87e3886a31a79eb0df76"
"hash": "2050773bcb76af8cf988458a3bfd22a1"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotSeatDetails.php",
"hash": "71f4354ce2e2195c0502b1c58685d270"
"hash": "a8ecbaf9a8ebe5dae05d80caf63adb7a"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Copilot\/ListCopilotSeats\/Response\/ApplicationJson\/Ok.php",
"hash": "1c08d3802ed3f5f09d489c90519b80ed"
"hash": "e44a3e6b789fe93c25429d29881b391a"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietF5944C0A\/TietAA99D7D8\/Tiet9AE1F544\/TietA28F869C.php",
Expand Down Expand Up @@ -24452,7 +24452,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Orgs.php",
"hash": "7625cb2f748a25f73eb436379d487943"
"hash": "7aa1e49892497be27649dd82f16073ed"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/RateLimit.php",
Expand Down Expand Up @@ -24812,7 +24812,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Orgs.php",
"hash": "f75d53cf3c1a759efc2dcff811581dfb"
"hash": "fc2e156a854552a3e4ab12a89471a39c"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Teams.php",
Expand Down Expand Up @@ -24872,7 +24872,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Orgs.php",
"hash": "b7064f19fd6b2132fea4c2076dc726d0"
"hash": "f216337da6ea505b2938bd94df3bda5c"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Codespaces.php",
Expand Down Expand Up @@ -24956,7 +24956,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
"hash": "343c2b760b84ced96a51118cca0661bb"
"hash": "b2a28a4c2a159a5554c4694f89317cfd"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
Expand Down Expand Up @@ -25096,7 +25096,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php",
"hash": "08ccaed3cd1c6bf14a3562ee889d0655"
"hash": "ca355d92539b542ef91be76d2fb5450d"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Eight.php",
Expand Down Expand Up @@ -25128,7 +25128,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Six.php",
"hash": "005f520b7747dbc03aca2290b99d7037"
"hash": "9f3dc75023548d3071b5b9a37ecfcf6b"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Eight.php",
Expand Down Expand Up @@ -25484,7 +25484,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Billing.php",
"hash": "2ee6e77d51da0181357404f7a6366cfd"
"hash": "ba0ebdf9ed5de7f8bbfe345861748d2c"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Billing\/Seats.php",
Expand Down Expand Up @@ -25604,7 +25604,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Members\/Username\/Copilot.php",
"hash": "79a20fd637d2fecbf00f10bd42cb3147"
"hash": "c06f25e050a7238628e4d0f336795349"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Memberships\/Username.php",
Expand Down Expand Up @@ -27528,7 +27528,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/GetCustomProperty.php",
"hash": "8dc202d2f5dfc5935acd69ac1bbdb0dd"
"hash": "6043440685746e826184b7017c073581"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/GetCustomPropertyTest.php",
Expand All @@ -27540,7 +27540,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/CreateOrUpdateCustomProperty.php",
"hash": "e503ca6aa384e7f5366d52af6a340c75"
"hash": "0014f81ebf2c18215cdff0f91368e995"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/CreateOrUpdateCustomPropertyTest.php",
Expand All @@ -27552,7 +27552,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/RemoveCustomProperty.php",
"hash": "b6f73478344e10109c8163f03d3ed6c5"
"hash": "8c1f0450066b826bd733d51dc3270205"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/RemoveCustomPropertyTest.php",
Expand Down Expand Up @@ -27736,11 +27736,11 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
"hash": "e10489bd6c2a67db47e1033c7dbcc6f4"
"hash": "b279bfe420072ca3881b316b41cde25a"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
"hash": "61d8619e191abe5c0c8fd6bf572ad7cc"
"hash": "a3cd037b10acacb7fbfa8165f0c08dac"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
Expand Down Expand Up @@ -29576,7 +29576,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Copilot\/ListCopilotSeatsForEnterprise\/Response\/ApplicationJson\/Ok.php",
"hash": "9186b42a601359e27cb165753f1d9100"
"hash": "cb30e7a32b89dfe82a76b606ff934eb5"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Copilot\/Billing\/Seats.php",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Copi
$properties['seatManagementSetting'] = $value;

after_seatManagementSetting:

$value = $payload['plan_type'] ?? null;

if ($value === null) {
$properties['planType'] = null;
goto after_planType;
}

$properties['planType'] = $value;

after_planType:
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails', $exception, stack: $this->hydrationStack);
}
Expand Down Expand Up @@ -426,6 +437,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
$seatManagementSetting = $object->seatManagementSetting;
after_seatManagementSetting: $result['seat_management_setting'] = $seatManagementSetting;

$planType = $object->planType;

if ($planType === null) {
goto after_planType;
}

after_planType: $result['plan_type'] = $planType;

return $result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Copi
$properties['updatedAt'] = $value;

after_updatedAt:

$value = $payload['plan_type'] ?? null;

if ($value === null) {
$properties['planType'] = null;
goto after_planType;
}

$properties['planType'] = $value;

after_planType:
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\CopilotSeatDetails', $exception, stack: $this->hydrationStack);
}
Expand Down Expand Up @@ -817,6 +828,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema

after_updatedAt: $result['updated_at'] = $updatedAt;

$planType = $object->planType;

if ($planType === null) {
goto after_planType;
}

after_planType: $result['plan_type'] = $planType;

return $result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $org, string $customPropertyName, array $params): CustomProperty
{
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\CreateOrUpdateCustomProperty($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $customPropertyName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $org, string $customPropertyName): CustomProperty
{
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\GetCustomProperty($this->responseSchemaValidator, $this->hydrator, $org, $customPropertyName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $org, string $customPropertyName): WithoutBody
{
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\RemoveCustomProperty($this->responseSchemaValidator, $this->hydrator, $org, $customPropertyName);
Expand Down
1 change: 1 addition & 0 deletions clients/GitHub/src/Internal/Router/Delete/Orgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ public function revokeAllOrgRolesUser(array $params): WithoutBody
return $operator->call($arguments['org'], $arguments['username']);
}

/** @return */
public function removeCustomProperty(array $params): WithoutBody
{
$arguments = [];
Expand Down
1 change: 0 additions & 1 deletion clients/GitHub/src/Internal/Router/Delete/Six.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public function __construct(private Routers $routers)
{
}

/** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */
public function call(string $call, array $params, array $pathChunks): WithoutBody|Ok|Json|ActionsCacheList|FileCommit
{
if ($pathChunks[0] === '') {
Expand Down
1 change: 1 addition & 0 deletions clients/GitHub/src/Internal/Router/Get/Orgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@ public function listPatGrantRepositories(array $params): iterable
return $operator->call($arguments['org'], $arguments['pat_id'], $arguments['per_page'], $arguments['page']);
}

/** @return */
public function getCustomProperty(array $params): CustomProperty
{
$arguments = [];
Expand Down
2 changes: 1 addition & 1 deletion clients/GitHub/src/Internal/Router/Get/Six.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function __construct(private Routers $routers)
{
}

/** @return |Observable<Schema\MarketplacePurchase>|Observable<Schema\RunnerApplication>|Observable<Schema\CodeSecurityDefaultConfigurations>|WithoutBody|Observable<Schema\HookDeliveryItem>|Observable<Schema\Team>|Observable<Schema\MinimalRepository>|Observable<Schema\TeamRoleAssignment>|Observable<Schema\UserRoleAssignment>|Schema\CustomProperty|Observable<Schema\TeamDiscussion>|Observable<Schema\OrganizationInvitation>|Observable<Schema\SimpleUser>|Observable<Schema\TeamProject>|Observable<Schema\CodeScanningAlertItems>|Observable<Schema\CodeScanningAnalysis>|Observable<Schema\DependabotAlert>|Observable<Schema\PorterAuthor>|Observable<Schema\PorterLargeFile>|Observable<Schema\IssueComment>|Observable<Schema\IssueEvent>|Observable<Schema\PageBuild>|Observable<Schema\CustomPropertyValue>|Observable<Schema\PullRequestReviewComment>|Observable<Schema\RuleSuites>|Observable<Schema\SecretScanningAlert>|Observable<int>|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\CommitActivity>|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\ContributorActivity>|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\TagProtection>|Observable<Schema\TeamDiscussionComment>|Observable<Schema\Reaction>|Observable<Schema\PackageVersion>|Observable<Schema\Event> */
/** @return |Observable<Schema\MarketplacePurchase>|Observable<Schema\RunnerApplication>|Observable<Schema\CodeSecurityDefaultConfigurations>|WithoutBody|Observable<Schema\HookDeliveryItem>|Observable<Schema\Team>|Observable<Schema\MinimalRepository>|Observable<Schema\TeamRoleAssignment>|Observable<Schema\UserRoleAssignment>|Observable<Schema\TeamDiscussion>|Observable<Schema\OrganizationInvitation>|Observable<Schema\SimpleUser>|Observable<Schema\TeamProject>|Observable<Schema\CodeScanningAlertItems>|Observable<Schema\CodeScanningAnalysis>|Observable<Schema\DependabotAlert>|Observable<Schema\PorterAuthor>|Observable<Schema\PorterLargeFile>|Observable<Schema\IssueComment>|Observable<Schema\IssueEvent>|Observable<Schema\PageBuild>|Observable<Schema\CustomPropertyValue>|Observable<Schema\PullRequestReviewComment>|Observable<Schema\RuleSuites>|Observable<Schema\SecretScanningAlert>|Observable<int>|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\CommitActivity>|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\ContributorActivity>|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable<Schema\TagProtection>|Observable<Schema\TeamDiscussionComment>|Observable<Schema\Reaction>|Observable<Schema\PackageVersion>|Observable<Schema\Event> */
public function call(string $call, array $params, array $pathChunks): Ok|iterable|ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|TeamRepository|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails
{
if ($pathChunks[0] === '') {
Expand Down
1 change: 1 addition & 0 deletions clients/GitHub/src/Internal/Router/Put/Orgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public function assignUserToOrgRole(array $params): WithoutBody
return $operator->call($arguments['org'], $arguments['username'], $arguments['role_id']);
}

/** @return */
public function createOrUpdateCustomProperty(array $params): CustomProperty
{
$arguments = [];
Expand Down
1 change: 0 additions & 1 deletion clients/GitHub/src/Internal/Router/Put/Six.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public function __construct(private Routers $routers)
{
}

/** @return |Schema\CustomProperty */
public function call(string $call, array $params, array $pathChunks): WithoutBody|EmptyObject|CustomProperty|RepositoryInvitation|FileCommit|Environment|RepositoryRuleset
{
if ($pathChunks[0] === '') {
Expand Down
3 changes: 3 additions & 0 deletions clients/GitHub/src/Operation/Orgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,16 +432,19 @@ public function createOrUpdateCustomProperties(string $org, array $params): iter
return $this->operators->orgs👷CreateOrUpdateCustomProperties()->call($org, $params);
}

/** @return */
public function getCustomProperty(string $org, string $customPropertyName): CustomProperty
{
return $this->operators->orgs👷GetCustomProperty()->call($org, $customPropertyName);
}

/** @return */
public function createOrUpdateCustomProperty(string $org, string $customPropertyName, array $params): CustomProperty
{
return $this->operators->orgs👷CreateOrUpdateCustomProperty()->call($org, $customPropertyName, $params);
}

/** @return */
public function removeCustomProperty(string $org, string $customPropertyName): WithoutBody
{
return $this->operators->orgs👷RemoveCustomProperty()->call($org, $customPropertyName);
Expand Down
Loading
Loading