Skip to content

Commit f932221

Browse files
authored
Merge pull request #1560 from php-api-clients/GitHub/from-1.1.4-7d805bd34cdea7b6c0229ab2be120a36-from-1.1.4-7d805bd34cdea7b6c0229ab2be120a36
2 parents 1eba05a + a2aa076 commit f932221

23 files changed

+204
-124
lines changed

clients/GitHub/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -7629,6 +7629,7 @@ $client->call('GET /orgs/{org}/personal-access-token-requests', [
76297629
'permission' => 'generated',
76307630
'last_used_before' => '1970-01-01T00:00:00+00:00',
76317631
'last_used_after' => '1970-01-01T00:00:00+00:00',
7632+
'token_id' => ,
76327633
'per_page' => 8,
76337634
'page' => 1,
76347635
'sort' => 'generated',
@@ -7644,6 +7645,7 @@ $client->operations()->orgs()->listPatGrantRequests( org: 'generated',
76447645
permission: 'generated',
76457646
last_used_before: '1970-01-01T00:00:00+00:00',
76467647
last_used_after: '1970-01-01T00:00:00+00:00',
7648+
token_id: ,
76477649
per_page: 8,
76487650
page: 1,
76497651
sort: 'generated',
@@ -7667,6 +7669,7 @@ $client->call('LIST /orgs/{org}/personal-access-token-requests', [
76677669
'permission' => 'generated',
76687670
'last_used_before' => '1970-01-01T00:00:00+00:00',
76697671
'last_used_after' => '1970-01-01T00:00:00+00:00',
7672+
'token_id' => ,
76707673
'per_page' => 8,
76717674
'page' => 1,
76727675
'sort' => 'generated',
@@ -7682,6 +7685,7 @@ $client->operations()->orgs()->listPatGrantRequestsListing( org: 'generat
76827685
permission: 'generated',
76837686
last_used_before: '1970-01-01T00:00:00+00:00',
76847687
last_used_after: '1970-01-01T00:00:00+00:00',
7688+
token_id: ,
76857689
per_page: 8,
76867690
page: 1,
76877691
sort: 'generated',
@@ -7799,6 +7803,7 @@ $client->call('GET /orgs/{org}/personal-access-tokens', [
77997803
'permission' => 'generated',
78007804
'last_used_before' => '1970-01-01T00:00:00+00:00',
78017805
'last_used_after' => '1970-01-01T00:00:00+00:00',
7806+
'token_id' => ,
78027807
'per_page' => 8,
78037808
'page' => 1,
78047809
'sort' => 'generated',
@@ -7814,6 +7819,7 @@ $client->operations()->orgs()->listPatGrants( org: 'generated',
78147819
permission: 'generated',
78157820
last_used_before: '1970-01-01T00:00:00+00:00',
78167821
last_used_after: '1970-01-01T00:00:00+00:00',
7822+
token_id: ,
78177823
per_page: 8,
78187824
page: 1,
78197825
sort: 'generated',
@@ -7837,6 +7843,7 @@ $client->call('LIST /orgs/{org}/personal-access-tokens', [
78377843
'permission' => 'generated',
78387844
'last_used_before' => '1970-01-01T00:00:00+00:00',
78397845
'last_used_after' => '1970-01-01T00:00:00+00:00',
7846+
'token_id' => ,
78407847
'per_page' => 8,
78417848
'page' => 1,
78427849
'sort' => 'generated',
@@ -7852,6 +7859,7 @@ $client->operations()->orgs()->listPatGrantsListing( org: 'generated',
78527859
permission: 'generated',
78537860
last_used_before: '1970-01-01T00:00:00+00:00',
78547861
last_used_after: '1970-01-01T00:00:00+00:00',
7862+
token_id: ,
78557863
per_page: 8,
78567864
page: 1,
78577865
sort: 'generated',

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

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "70c15d3e8826de45231fa16fc40897e0",
2+
"specHash": "7d805bd34cdea7b6c0229ab2be120a36",
33
"generatedFiles": {
44
"files": [
55
{
@@ -52,7 +52,7 @@
5252
},
5353
{
5454
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/HookDeliveryItem.php",
55-
"hash": "04479f6019622c2dabb386ebc587c972"
55+
"hash": "93a41ce79fe0005aace4f632e7321c7e"
5656
},
5757
{
5858
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ScimError.php",
@@ -5532,7 +5532,7 @@
55325532
},
55335533
{
55345534
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/SecretScanning.php",
5535-
"hash": "91aebb408135c1eeda46c62b1578a527"
5535+
"hash": "9bb033435eaa98d866efe71eb1e4ddbd"
55365536
},
55375537
{
55385538
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Activity.php",
@@ -5560,7 +5560,7 @@
55605560
},
55615561
{
55625562
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Orgs.php",
5563-
"hash": "522ec4cc03bbbbbca200641fc85ece20"
5563+
"hash": "ee905fb50ef56f8fe478cc20b39708b7"
55645564
},
55655565
{
55665566
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php",
@@ -5572,7 +5572,7 @@
55725572
},
55735573
{
55745574
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeScanning.php",
5575-
"hash": "114259a2fc517cfc88cf0ba2f0872373"
5575+
"hash": "8afe9ac6d0e3ea7cf988c7adcd3de78f"
55765576
},
55775577
{
55785578
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Codespaces.php",
@@ -14728,27 +14728,27 @@
1472814728
},
1472914729
{
1473014730
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListPatGrantRequests.php",
14731-
"hash": "797883899926874e775b526398d6fa6e"
14731+
"hash": "0b952103869cd301f32452334382b7ef"
1473214732
},
1473314733
{
1473414734
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListPatGrantRequests.php",
14735-
"hash": "a6246c6c732a0aeb4a549b5123aa4d37"
14735+
"hash": "1c6ec04e5420e569c4bf849783fd5571"
1473614736
},
1473714737
{
1473814738
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListPatGrantRequestsTest.php",
14739-
"hash": "40614ba7202bc93cd157aa24aea2e3a8"
14739+
"hash": "1e53809aadc93804d71a9ddbea5d615a"
1474014740
},
1474114741
{
1474214742
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListPatGrantRequestsListing.php",
14743-
"hash": "a689223fbee74ee4f0e5812b0aa8ec2e"
14743+
"hash": "c55b9db35418ccf29607d8becdd0b7e3"
1474414744
},
1474514745
{
1474614746
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListPatGrantRequestsListing.php",
14747-
"hash": "3ed23610f587dd5629a872430d6d05f5"
14747+
"hash": "7785b3dbd83ccafcdafc7501b010bc1a"
1474814748
},
1474914749
{
1475014750
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListPatGrantRequestsListingTest.php",
14751-
"hash": "380262aa03f5b711ce2a904807071aee"
14751+
"hash": "02d6aa76e63b5ec213cc76ba3d5b86d9"
1475214752
},
1475314753
{
1475414754
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ReviewPatGrantRequestsInBulk.php",
@@ -14800,27 +14800,27 @@
1480014800
},
1480114801
{
1480214802
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListPatGrants.php",
14803-
"hash": "ce5574a0ad66ca859d2b175f3ea0f0b3"
14803+
"hash": "defb528ce17d7fad16ea1e936b224e4a"
1480414804
},
1480514805
{
1480614806
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListPatGrants.php",
14807-
"hash": "2d25bad02a7e4a117b34907c8b116325"
14807+
"hash": "3287c6a34d9e88dff2f3bf9cb46bec65"
1480814808
},
1480914809
{
1481014810
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListPatGrantsTest.php",
14811-
"hash": "20149a011e341a37f31debc7c6a88ac5"
14811+
"hash": "3b982eea6b321d1983a1e8745affd822"
1481214812
},
1481314813
{
1481414814
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListPatGrantsListing.php",
14815-
"hash": "42fec6cf92c7877b7fd5bc3cd78ba944"
14815+
"hash": "40bc9f9b75f75f8819ca8cbec68990f1"
1481614816
},
1481714817
{
1481814818
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListPatGrantsListing.php",
14819-
"hash": "bee1efb81002f7639ef1c67a15ec6fd9"
14819+
"hash": "249b2e362eb718f44597495e652b5570"
1482014820
},
1482114821
{
1482214822
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListPatGrantsListingTest.php",
14823-
"hash": "beaebd8051cafc2c342c22b0aa3f2a97"
14823+
"hash": "72c02c97449ded36a8397771af1703cb"
1482414824
},
1482514825
{
1482614826
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/UpdatePatAccesses.php",
@@ -24332,7 +24332,7 @@
2433224332
},
2433324333
{
2433424334
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Orgs.php",
24335-
"hash": "abb04bf1621cb43991f9573fc596839f"
24335+
"hash": "728b58e1791d07dbf849eeec9130dfdc"
2433624336
},
2433724337
{
2433824338
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/RateLimit.php",
@@ -24608,7 +24608,7 @@
2460824608
},
2460924609
{
2461024610
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Orgs.php",
24611-
"hash": "f38931e8b155a6c9dce5e8fcd2394c6b"
24611+
"hash": "fc8b6740b9c76ea5fdd5d4e36aca8425"
2461224612
},
2461324613
{
2461424614
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Packages.php",
@@ -24828,7 +24828,7 @@
2482824828
},
2482924829
{
2483024830
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php",
24831-
"hash": "18a08639d99cec6fb1771a5fd26fd9e4"
24831+
"hash": "2f7d9a1d6d2e72dd6a067c13085e5ff7"
2483224832
},
2483324833
{
2483424834
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
@@ -24932,7 +24932,7 @@
2493224932
},
2493324933
{
2493424934
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php",
24935-
"hash": "0bd1bbcad8e6f0a66a2ee13388a836ac"
24935+
"hash": "b3572a79a5afa30c43ded1b787f744fd"
2493624936
},
2493724937
{
2493824938
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php",
@@ -27612,11 +27612,11 @@
2761227612
},
2761327613
{
2761427614
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27615-
"hash": "0d3db6688c9fae3081f04b53c53152cc"
27615+
"hash": "a086b7b1324de581b52e5778074cdede"
2761627616
},
2761727617
{
2761827618
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27619-
"hash": "5c629eef52f39ab563b41d080fb37095"
27619+
"hash": "e2d599457ab74bfd6fa74a03dad4efd2"
2762027620
},
2762127621
{
2762227622
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",

clients/GitHub/src/Internal/Operation/Orgs/ListPatGrantRequests.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ final class ListPatGrantRequests
3737
private string $lastUsedBefore;
3838
/**Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. **/
3939
private string $lastUsedAfter;
40+
/**The ID of the token **/
41+
private array $tokenId;
4042
/**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
4143
private int $perPage;
4244
/**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
@@ -46,14 +48,15 @@ final class ListPatGrantRequests
4648
/**The direction to sort the results by. **/
4749
private string $direction;
4850

49-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\PersonalAccessTokenRequests $hydrator, string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, int $perPage = 30, int $page = 1, string $sort = 'created_at', string $direction = 'desc')
51+
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\PersonalAccessTokenRequests $hydrator, string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage = 30, int $page = 1, string $sort = 'created_at', string $direction = 'desc')
5052
{
5153
$this->org = $org;
5254
$this->owner = $owner;
5355
$this->repository = $repository;
5456
$this->permission = $permission;
5557
$this->lastUsedBefore = $lastUsedBefore;
5658
$this->lastUsedAfter = $lastUsedAfter;
59+
$this->tokenId = $tokenId;
5760
$this->perPage = $perPage;
5861
$this->page = $page;
5962
$this->sort = $sort;
@@ -62,7 +65,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali
6265

6366
public function createRequest(): RequestInterface
6467
{
65-
return new Request('GET', str_replace(['{org}', '{owner}', '{repository}', '{permission}', '{last_used_before}', '{last_used_after}', '{per_page}', '{page}', '{sort}', '{direction}'], [$this->org, $this->owner, $this->repository, $this->permission, $this->lastUsedBefore, $this->lastUsedAfter, $this->perPage, $this->page, $this->sort, $this->direction], '/orgs/{org}/personal-access-token-requests' . '?owner={owner}&repository={repository}&permission={permission}&last_used_before={last_used_before}&last_used_after={last_used_after}&per_page={per_page}&page={page}&sort={sort}&direction={direction}'));
68+
return new Request('GET', str_replace(['{org}', '{owner}', '{repository}', '{permission}', '{last_used_before}', '{last_used_after}', '{token_id}', '{per_page}', '{page}', '{sort}', '{direction}'], [$this->org, $this->owner, $this->repository, $this->permission, $this->lastUsedBefore, $this->lastUsedAfter, $this->tokenId, $this->perPage, $this->page, $this->sort, $this->direction], '/orgs/{org}/personal-access-token-requests' . '?owner={owner}&repository={repository}&permission={permission}&last_used_before={last_used_before}&last_used_after={last_used_after}&token_id={token_id}&per_page={per_page}&page={page}&sort={sort}&direction={direction}'));
6669
}
6770

6871
/** @return Observable<Schema\OrganizationProgrammaticAccessGrantRequest> */

clients/GitHub/src/Internal/Operation/Orgs/ListPatGrantRequestsListing.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ final class ListPatGrantRequestsListing
3737
private string $lastUsedBefore;
3838
/**Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. **/
3939
private string $lastUsedAfter;
40+
/**The ID of the token **/
41+
private array $tokenId;
4042
/**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
4143
private int $perPage;
4244
/**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
@@ -46,14 +48,15 @@ final class ListPatGrantRequestsListing
4648
/**The direction to sort the results by. **/
4749
private string $direction;
4850

49-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\PersonalAccessTokenRequests $hydrator, string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, int $perPage = 30, int $page = 1, string $sort = 'created_at', string $direction = 'desc')
51+
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\PersonalAccessTokenRequests $hydrator, string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage = 30, int $page = 1, string $sort = 'created_at', string $direction = 'desc')
5052
{
5153
$this->org = $org;
5254
$this->owner = $owner;
5355
$this->repository = $repository;
5456
$this->permission = $permission;
5557
$this->lastUsedBefore = $lastUsedBefore;
5658
$this->lastUsedAfter = $lastUsedAfter;
59+
$this->tokenId = $tokenId;
5760
$this->perPage = $perPage;
5861
$this->page = $page;
5962
$this->sort = $sort;
@@ -62,7 +65,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali
6265

6366
public function createRequest(): RequestInterface
6467
{
65-
return new Request('GET', str_replace(['{org}', '{owner}', '{repository}', '{permission}', '{last_used_before}', '{last_used_after}', '{per_page}', '{page}', '{sort}', '{direction}'], [$this->org, $this->owner, $this->repository, $this->permission, $this->lastUsedBefore, $this->lastUsedAfter, $this->perPage, $this->page, $this->sort, $this->direction], '/orgs/{org}/personal-access-token-requests' . '?owner={owner}&repository={repository}&permission={permission}&last_used_before={last_used_before}&last_used_after={last_used_after}&per_page={per_page}&page={page}&sort={sort}&direction={direction}'));
68+
return new Request('GET', str_replace(['{org}', '{owner}', '{repository}', '{permission}', '{last_used_before}', '{last_used_after}', '{token_id}', '{per_page}', '{page}', '{sort}', '{direction}'], [$this->org, $this->owner, $this->repository, $this->permission, $this->lastUsedBefore, $this->lastUsedAfter, $this->tokenId, $this->perPage, $this->page, $this->sort, $this->direction], '/orgs/{org}/personal-access-token-requests' . '?owner={owner}&repository={repository}&permission={permission}&last_used_before={last_used_before}&last_used_after={last_used_after}&token_id={token_id}&per_page={per_page}&page={page}&sort={sort}&direction={direction}'));
6669
}
6770

6871
/** @return Observable<Schema\OrganizationProgrammaticAccessGrantRequest> */

0 commit comments

Comments
 (0)