Skip to content

Commit be8e051

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHubEnterpriseCloud] Update to 1.1.4-041810bc991810fa97b34eae71cba9ac from 1.1.4-1e75d6425ed4e4aae7d5a75047e1095c
Detected Schema changes: starting work. Building original model for commit 4d3dc7 2024-05-27 17:24:32 ERROR unable to open the rolodex file, check specification references and base path ├ file: /__w/github-root/github-root/server-statistics-actions.yaml └ error: open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory 2024-05-27 17:24:32 ERROR unable to open the rolodex file, check specification references and base path ├ file: /__w/github-root/github-root/server-statistics-packages.yaml └ error: open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory 2024-05-27 17:24:35 ERROR unable to open the rolodex file, check specification references and base path ├ file: /__w/github-root/github-root/server-statistics-packages.yaml └ error: open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory 2024-05-27 17:24:35 ERROR unable to open the rolodex file, check specification references and base path ├ file: /__w/github-root/github-root/server-statistics-actions.yaml └ error: open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [203315:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [203317:11] ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [203296:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [203298:11]
1 parent e467c77 commit be8e051

File tree

13 files changed

+126
-19
lines changed

13 files changed

+126
-19
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "1e75d6425ed4e4aae7d5a75047e1095c",
2+
"specHash": "041810bc991810fa97b34eae71cba9ac",
33
"generatedFiles": {
44
"files": [
55
{
@@ -52,7 +52,7 @@
5252
},
5353
{
5454
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/HookDeliveryItem.php",
55-
"hash": "c7b80e781c190dfb3ab7828352aa3df8"
55+
"hash": "b2613c3f77da7c9551e96c47342fcc71"
5656
},
5757
{
5858
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ScimError.php",
@@ -72,7 +72,7 @@
7272
},
7373
{
7474
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/HookDelivery.php",
75-
"hash": "183e07d14181382391ce1f8b7dbfb892"
75+
"hash": "2ac3b6c4675f2b98df7453b3a626a56b"
7676
},
7777
{
7878
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Enterprise.php",
@@ -5984,7 +5984,7 @@
59845984
},
59855985
{
59865986
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php",
5987-
"hash": "45b5ecd6f7e191ea93d6a89563cd57bf"
5987+
"hash": "ea53d5900ef20eeca40759702d1d7333"
59885988
},
59895989
{
59905990
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -6008,7 +6008,7 @@
60086008
},
60096009
{
60106010
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Pulls.php",
6011-
"hash": "195c50db109fb94083e2cc1d7d0903a1"
6011+
"hash": "de2c25c9cb75e3ac17a7889ad5296a73"
60126012
},
60136013
{
60146014
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php",
@@ -22032,7 +22032,7 @@
2203222032
},
2203322033
{
2203422034
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Pulls\/Get.php",
22035-
"hash": "e2b45b79358b41962e580a172359cde7"
22035+
"hash": "3cf2d689f271c48968cfa819c67655d7"
2203622036
},
2203722037
{
2203822038
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Pulls\/GetTest.php",
@@ -26240,7 +26240,7 @@
2624026240
},
2624126241
{
2624226242
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Pulls.php",
26243-
"hash": "99d6a711d7f91b5c5b286d72e3ea828c"
26243+
"hash": "02b07d628ac64e573f60f753c10960dd"
2624426244
},
2624526245
{
2624626246
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Billing.php",
@@ -26728,7 +26728,7 @@
2672826728
},
2672926729
{
2673026730
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
26731-
"hash": "1cef6ff39abe5e8e2b67bf2e0e259b54"
26731+
"hash": "28c7d64a38f9ae61536e5ff3af0ea112"
2673226732
},
2673326733
{
2673426734
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
@@ -26964,7 +26964,7 @@
2696426964
},
2696526965
{
2696626966
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App\/Hook\/Deliveries\/DeliveryId.php",
26967-
"hash": "d25230005c132cf9560267b297bc952f"
26967+
"hash": "60e7d01819dc6b010bf608a39c80e130"
2696826968
},
2696926969
{
2697026970
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App\/Hook\/Deliveries\/DeliveryId\/Attempts.php",
@@ -27464,7 +27464,7 @@
2746427464
},
2746527465
{
2746627466
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Hooks\/HookId\/Deliveries\/DeliveryId.php",
27467-
"hash": "564f687db19e800b94d81ccb3a240ecc"
27467+
"hash": "33ede7be074b6b474f82cb429208215b"
2746827468
},
2746927469
{
2747027470
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Hooks\/HookId\/Deliveries\/DeliveryId\/Attempts.php",
@@ -28312,7 +28312,7 @@
2831228312
},
2831328313
{
2831428314
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Hooks\/HookId\/Deliveries\/DeliveryId.php",
28315-
"hash": "d73eb986195dda5530f3e5fada8f25c5"
28315+
"hash": "915bd75a10bdea9946c166394532c048"
2831628316
},
2831728317
{
2831828318
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Hooks\/HookId\/Deliveries\/DeliveryId\/Attempts.php",
@@ -29952,11 +29952,11 @@
2995229952
},
2995329953
{
2995429954
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
29955-
"hash": "60a4ffcd33ebdd26952492229d3c5366"
29955+
"hash": "9804e3abd8d57ebf2ca49444b94a2844"
2995629956
},
2995729957
{
2995829958
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
29959-
"hash": "2761e873802b9bc95ac726085f88df59"
29959+
"hash": "cc212d9689dac720d02ca8d739e5fbed"
2996029960
},
2996129961
{
2996229962
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/App/Hook/Deliveries/DeliveryId.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
186186

187187
after_repositoryId:
188188

189+
$value = $payload['throttled_at'] ?? null;
190+
191+
if ($value === null) {
192+
$properties['throttledAt'] = null;
193+
goto after_throttledAt;
194+
}
195+
196+
$properties['throttledAt'] = $value;
197+
198+
after_throttledAt:
199+
189200
$value = $payload['url'] ?? null;
190201

191202
if ($value === null) {
@@ -772,6 +783,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
772783

773784
after_repositoryId: $result['repository_id'] = $repositoryId;
774785

786+
$throttledAt = $object->throttledAt;
787+
788+
if ($throttledAt === null) {
789+
goto after_throttledAt;
790+
}
791+
792+
after_throttledAt: $result['throttled_at'] = $throttledAt;
793+
775794
$url = $object->url;
776795

777796
if ($url === null) {

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Hooks/HookId/Deliveries/DeliveryId.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
186186

187187
after_repositoryId:
188188

189+
$value = $payload['throttled_at'] ?? null;
190+
191+
if ($value === null) {
192+
$properties['throttledAt'] = null;
193+
goto after_throttledAt;
194+
}
195+
196+
$properties['throttledAt'] = $value;
197+
198+
after_throttledAt:
199+
189200
$value = $payload['url'] ?? null;
190201

191202
if ($value === null) {
@@ -772,6 +783,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
772783

773784
after_repositoryId: $result['repository_id'] = $repositoryId;
774785

786+
$throttledAt = $object->throttledAt;
787+
788+
if ($throttledAt === null) {
789+
goto after_throttledAt;
790+
}
791+
792+
after_throttledAt: $result['throttled_at'] = $throttledAt;
793+
775794
$url = $object->url;
776795

777796
if ($url === null) {

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Hooks/HookId/Deliveries/DeliveryId.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
186186

187187
after_repositoryId:
188188

189+
$value = $payload['throttled_at'] ?? null;
190+
191+
if ($value === null) {
192+
$properties['throttledAt'] = null;
193+
goto after_throttledAt;
194+
}
195+
196+
$properties['throttledAt'] = $value;
197+
198+
after_throttledAt:
199+
189200
$value = $payload['url'] ?? null;
190201

191202
if ($value === null) {
@@ -772,6 +783,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
772783

773784
after_repositoryId: $result['repository_id'] = $repositoryId;
774785

786+
$throttledAt = $object->throttledAt;
787+
788+
if ($throttledAt === null) {
789+
goto after_throttledAt;
790+
}
791+
792+
after_throttledAt: $result['throttled_at'] = $throttledAt;
793+
775794
$url = $object->url;
776795

777796
if ($url === null) {

clients/GitHubEnterpriseCloud/src/Internal/Operator/Pulls/Get.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 $owner, string $repo, int $pullNumber): PullRequest|WithoutBody
2930
{
3031
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Pulls\Get($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber);

clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Pulls.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public function listReviewCommentsForRepo(array $params): iterable
138138
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['sort'], $arguments['direction'], $arguments['since'], $arguments['per_page'], $arguments['page']);
139139
}
140140

141+
/** @return */
141142
public function get(array $params): PullRequest|WithoutBody
142143
{
143144
$arguments = [];

clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function __construct(private Routers $routers)
8080
{
8181
}
8282

83-
/** @return |Observable<Schema\RunnerApplication>|Observable<Schema\MarketplacePurchase>|Observable<Schema\HookDeliveryItem>|Observable<Schema\Team>|Observable<Schema\MinimalRepository>|WithoutBody|Observable<Schema\SimpleUser>|Observable<Schema\TeamDiscussion>|Observable<Schema\OrganizationInvitation>|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>|Schema\PullRequest|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|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> */
83+
/** @return |Observable<Schema\RunnerApplication>|Observable<Schema\MarketplacePurchase>|Observable<Schema\HookDeliveryItem>|Observable<Schema\Team>|Observable<Schema\MinimalRepository>|WithoutBody|Observable<Schema\SimpleUser>|Observable<Schema\TeamDiscussion>|Observable<Schema\OrganizationInvitation>|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> */
8484
public function call(string $call, array $params, array $pathChunks): ActionsCacheUsageOrgEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|ActionsBillingUsage|AdvancedSecurityActiveCommitters|PackagesBillingUsage|CombinedBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|WithoutBody|CopilotSeatDetails|Package|OrgCustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|ScimEnterpriseGroupList|ScimEnterpriseUserList|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails
8585
{
8686
if ($pathChunks[0] === '') {

clients/GitHubEnterpriseCloud/src/Operation/Pulls.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function updateReviewComment(string $owner, string $repo, int $commentId,
6969
return $this->operators->pulls👷UpdateReviewComment()->call($owner, $repo, $commentId, $params);
7070
}
7171

72+
/** @return */
7273
public function get(string $owner, string $repo, int $pullNumber): PullRequest|WithoutBody
7374
{
7475
return $this->operators->pulls👷Get()->call($owner, $repo, $pullNumber);

clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php

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

35703570
if ($call === 'GET /repos/{owner}/{repo}/pulls/{pull_number}') {
3571-
return $this->typeResolver->resolve('Schema\\PullRequest|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody');
3571+
return $this->typeResolver->resolve('');
35723572
}
35733573

35743574
if ($call === 'PATCH /repos/{owner}/{repo}/pulls/{pull_number}') {

clients/GitHubEnterpriseCloud/src/Schema/HookDelivery.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@
115115
123
116116
]
117117
},
118+
"throttled_at": {
119+
"type": [
120+
"string",
121+
"null"
122+
],
123+
"description": "Time when the webhook delivery was throttled.",
124+
"format": "date-time",
125+
"examples": [
126+
"2021-05-12T20:33:44Z"
127+
]
128+
},
118129
"url": {
119130
"type": "string",
120131
"description": "The URL target of the delivery.",
@@ -189,6 +200,7 @@
189200
"action": "opened",
190201
"installation_id": 123,
191202
"repository_id": 123,
203+
"throttled_at": "2021-05-12T20:33:44Z",
192204
"url": "https:\\/\\/www.example.com",
193205
"request": {
194206
"headers": [],
@@ -212,13 +224,15 @@
212224
* action: The type of activity for the event that triggered the delivery.
213225
* installationId: The id of the GitHub App installation associated with this event.
214226
* repositoryId: The id of the repository associated with this event.
227+
* throttledAt: Time when the webhook delivery was throttled.
215228
* url: The URL target of the delivery.
216229
*/
217230
public function __construct(public int $id, public string $guid, #[MapFrom('delivered_at')]
218231
public string $deliveredAt, public bool $redelivery, public int|float $duration, public string $status, #[MapFrom('status_code')]
219232
public int $statusCode, public string $event, public string|null $action, #[MapFrom('installation_id')]
220233
public int|null $installationId, #[MapFrom('repository_id')]
221-
public int|null $repositoryId, public string|null $url, public Schema\HookDelivery\Request $request, public Schema\HookDelivery\Response $response,)
234+
public int|null $repositoryId, #[MapFrom('throttled_at')]
235+
public string|null $throttledAt, public string|null $url, public Schema\HookDelivery\Request $request, public Schema\HookDelivery\Response $response,)
222236
{
223237
}
224238
}

0 commit comments

Comments
 (0)