diff --git a/clients/GitHubEnterprise-3.15/README.md b/clients/GitHubEnterprise-3.15/README.md index 32545217006..92774f70089 100644 --- a/clients/GitHubEnterprise-3.15/README.md +++ b/clients/GitHubEnterprise-3.15/README.md @@ -8477,6 +8477,7 @@ $client->call('GET /orgs/{org}/personal-access-token-requests', [ 'permission' => 'generated', 'last_used_before' => '1970-01-01T00:00:00+00:00', 'last_used_after' => '1970-01-01T00:00:00+00:00', + 'token_id' => , 'per_page' => 8, 'page' => 1, 'sort' => 'generated', @@ -8492,6 +8493,7 @@ $client->operations()->orgs()->listPatGrantRequests( org: 'generated', permission: 'generated', last_used_before: '1970-01-01T00:00:00+00:00', last_used_after: '1970-01-01T00:00:00+00:00', + token_id: , per_page: 8, page: 1, sort: 'generated', @@ -8515,6 +8517,7 @@ $client->call('LIST /orgs/{org}/personal-access-token-requests', [ 'permission' => 'generated', 'last_used_before' => '1970-01-01T00:00:00+00:00', 'last_used_after' => '1970-01-01T00:00:00+00:00', + 'token_id' => , 'per_page' => 8, 'page' => 1, 'sort' => 'generated', @@ -8530,6 +8533,7 @@ $client->operations()->orgs()->listPatGrantRequestsListing( org: 'generat permission: 'generated', last_used_before: '1970-01-01T00:00:00+00:00', last_used_after: '1970-01-01T00:00:00+00:00', + token_id: , per_page: 8, page: 1, sort: 'generated', @@ -8647,6 +8651,7 @@ $client->call('GET /orgs/{org}/personal-access-tokens', [ 'permission' => 'generated', 'last_used_before' => '1970-01-01T00:00:00+00:00', 'last_used_after' => '1970-01-01T00:00:00+00:00', + 'token_id' => , 'per_page' => 8, 'page' => 1, 'sort' => 'generated', @@ -8662,6 +8667,7 @@ $client->operations()->orgs()->listPatGrants( org: 'generated', permission: 'generated', last_used_before: '1970-01-01T00:00:00+00:00', last_used_after: '1970-01-01T00:00:00+00:00', + token_id: , per_page: 8, page: 1, sort: 'generated', @@ -8685,6 +8691,7 @@ $client->call('LIST /orgs/{org}/personal-access-tokens', [ 'permission' => 'generated', 'last_used_before' => '1970-01-01T00:00:00+00:00', 'last_used_after' => '1970-01-01T00:00:00+00:00', + 'token_id' => , 'per_page' => 8, 'page' => 1, 'sort' => 'generated', @@ -8700,6 +8707,7 @@ $client->operations()->orgs()->listPatGrantsListing( org: 'generated', permission: 'generated', last_used_before: '1970-01-01T00:00:00+00:00', last_used_after: '1970-01-01T00:00:00+00:00', + token_id: , per_page: 8, page: 1, sort: 'generated', diff --git a/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state b/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state index b1409e183b3..0bd69d5f0cc 100644 --- a/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state +++ b/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "0e6a4a1bd0678c8ca272e91b4354bf3a", + "specHash": "8ccdb4a501a9f3713872e86b010424b2", "generatedFiles": { "files": [ { @@ -1608,7 +1608,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListAlertsForEnterprise.php", - "hash": "a53ab95d403d167c4cc01534b7982d1e" + "hash": "4bc5d6f123edc566d7b8a526bb4add05" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListAlertsForEnterpriseTest.php", @@ -4268,27 +4268,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListPatGrantRequests.php", - "hash": "1e75ea1dc3d574f482a1c24e2622e6ef" + "hash": "b43ec9c890ee1f041f089183329ca607" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListPatGrantRequests.php", - "hash": "c4590482ff8c8e3277c2309887f541fc" + "hash": "4e67d9d6ce9a2cf0b6980f23c480b391" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListPatGrantRequestsTest.php", - "hash": "071428b8f0e99e527d2721ca74b53cec" + "hash": "525b1e33c83bfa34cb01f7028867acd6" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListPatGrantRequestsListing.php", - "hash": "969e8c2e574268abdb4fbfff51666139" + "hash": "f5c20c4ccba2ce72fb5a62f303ff2cd6" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListPatGrantRequestsListing.php", - "hash": "2606168010953254466336eb5d69259c" + "hash": "36ff151ed2c5b36a2cc34e1b2a1281d5" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListPatGrantRequestsListingTest.php", - "hash": "6c19013ccf7e2d228902013f614cfe06" + "hash": "8df90019c6e09af2cf680593548c7d6f" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ReviewPatGrantRequestsInBulk.php", @@ -4340,27 +4340,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListPatGrants.php", - "hash": "61ffafcf07828e74900206370c4d470d" + "hash": "4779079c5a62516687406b554634685b" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListPatGrants.php", - "hash": "48226d4b2c4735ae557841b9484d624c" + "hash": "497c0085cca27a6ec26b3f8379d09438" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListPatGrantsTest.php", - "hash": "ff8c29f87c8c5e99c23a820cbd9efd72" + "hash": "8ebee1a0be6605965a913abd50eacd3e" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListPatGrantsListing.php", - "hash": "d533865c07af48b5a0eaad0e8998ebb5" + "hash": "d357b052cc45b227ccdba5adbaa451a4" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListPatGrantsListing.php", - "hash": "d2cd3168b1f358c1c64cfd58d3871726" + "hash": "61bd7a0b9ef00af7fa12baf5c0e9269b" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListPatGrantsListingTest.php", - "hash": "8bf2f870c16e3ff8452ce2a184330460" + "hash": "2f16b1356a8fb54e9e902200bd112440" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/UpdatePatAccesses.php", @@ -4816,7 +4816,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListAlertsForOrg.php", - "hash": "3f571d60978cfd1cfaf29a085a3b7309" + "hash": "df0be2f42b31115c4cfe94d29007a7a9" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListAlertsForOrgTest.php", @@ -4828,7 +4828,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListAlertsForOrgListing.php", - "hash": "ddf7aa0871077b49e8608604db23555a" + "hash": "04b7e5d458c6abb8ec7873edd193a9cc" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListAlertsForOrgListingTest.php", @@ -7236,7 +7236,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/UpdateAlert.php", - "hash": "fd3b96fa7070fd31d1490b2ae4861c54" + "hash": "0d58379475f7ab773df9ae4b3b7d84c5" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/UpdateAlertTest.php", @@ -10632,7 +10632,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListAlertsForRepo.php", - "hash": "577f770ebbb8a15b8326d7474121d3fa" + "hash": "6ce3589ba60d1913c2b76a8bae5847f1" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListAlertsForRepoTest.php", @@ -10644,7 +10644,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListAlertsForRepoListing.php", - "hash": "1fd156690c8f36712caa02720855d32e" + "hash": "1dee4bf2412aded3977570b36ba1b5e7" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListAlertsForRepoListingTest.php", @@ -13472,7 +13472,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/HookDeliveryItem.php", - "hash": "3694de089522c8fe4e00256c0ee20ae0" + "hash": "1fedf8b49c76df7b0fe1872ce1ec0a52" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ScimError.php", @@ -26688,7 +26688,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Orgs.php", - "hash": "9fdc7da266e9419908dac57f52b30000" + "hash": "c2103c417109e65daefb788d4d044b2b" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Projects.php", @@ -26728,7 +26728,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/SecretScanning.php", - "hash": "050fa76b7131e2e730b1248529cb4d11" + "hash": "bc73428e7d9e42ed9badc19bad71e9cb" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/AnnouncementBanners.php", @@ -26816,7 +26816,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Orgs.php", - "hash": "bc764381e0250bc0e9333a8fff9159ac" + "hash": "fe915073dd20ac9e0bd3af6896a8f2e1" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Packages.php", @@ -26848,7 +26848,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/SecretScanning.php", - "hash": "c62ca48a00921755b35a8b8a7b357f3f" + "hash": "1fec596505bf75591427f79980b7c03c" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Pulls.php", @@ -27084,7 +27084,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/CodeScanning.php", - "hash": "b169946b91470cd53c5ec292b35ad780" + "hash": "f4eded73dbc98d19cc03cd2545bc0a44" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Issues.php", @@ -27204,11 +27204,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "0df2313d2ca2fc823fc59cd77bd702c0" + "hash": "77132d82de37d4a914871c73ed260ea6" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "43e123d904ad91affb4e18292130dc94" + "hash": "03a78049cc14a10e8b8ad6bf8778c4ab" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php", @@ -27216,7 +27216,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "57e1cd0431c002a99609afd769015d76" + "hash": "f44dd133d5a777f374149df2b549e928" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -27244,15 +27244,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php", - "hash": "04d7bebd979765b12c9ded734740a97c" + "hash": "c7fcf27978087b538f54168ae104169e" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "80934af4705b7c0eaa614cdb7db97b69" + "hash": "acd7909d2adc36a5541ecf4184f9e6ac" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "41d737c1beb73b93d83b7e4725f104fb" + "hash": "48ef5001857b680a305472fbbc03d23e" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -27356,7 +27356,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Seven.php", - "hash": "e6af182f8222fb648cfc3c789507197c" + "hash": "619ee85831f1ccf3b4aa9570bc701fb6" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Nine.php", @@ -27420,11 +27420,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "e4eff747111d5775c682f08dd59e5904" + "hash": "cae8eedbfafb74504e2f97368eb06b8a" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "d5915f612743de0fe849f83f6c162c29" + "hash": "ca6c94753ea5e868309a31332ef5aa75" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -27468,11 +27468,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/CodeScanning.php", - "hash": "254f6e3c029935a79e15b051e78e67ba" + "hash": "8d74cb0767902bc248a4b84f9db34c5a" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/SecretScanning.php", - "hash": "2cf667fa5fe44d232492f95c3ad3ffd9" + "hash": "5630a64685366f3b537afb167d9b15fe" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Dependabot.php", @@ -27508,7 +27508,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "fdc3b3f56cbdb20a22e742684b62055c" + "hash": "85f8bc406864c609810412e42770f9d6" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Oidc.php", diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrantRequests.php b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrantRequests.php index 418914830c6..3503e70b3e9 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrantRequests.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrantRequests.php @@ -37,6 +37,8 @@ final class ListPatGrantRequests private string $lastUsedBefore; /**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`. **/ private string $lastUsedAfter; + /**The ID of the token **/ + private array $tokenId; /**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.15/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $perPage; /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.15/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ @@ -46,7 +48,7 @@ final class ListPatGrantRequests /**The direction to sort the results by. **/ private string $direction; - 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') + 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') { $this->org = $org; $this->owner = $owner; @@ -54,6 +56,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali $this->permission = $permission; $this->lastUsedBefore = $lastUsedBefore; $this->lastUsedAfter = $lastUsedAfter; + $this->tokenId = $tokenId; $this->perPage = $perPage; $this->page = $page; $this->sort = $sort; @@ -62,7 +65,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - 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}')); + 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}')); } /** @return Observable */ diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrantRequestsListing.php b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrantRequestsListing.php index a5d1af058d4..0856cfc6bab 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrantRequestsListing.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrantRequestsListing.php @@ -37,6 +37,8 @@ final class ListPatGrantRequestsListing private string $lastUsedBefore; /**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`. **/ private string $lastUsedAfter; + /**The ID of the token **/ + private array $tokenId; /**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.15/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $perPage; /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.15/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ @@ -46,7 +48,7 @@ final class ListPatGrantRequestsListing /**The direction to sort the results by. **/ private string $direction; - 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') + 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') { $this->org = $org; $this->owner = $owner; @@ -54,6 +56,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali $this->permission = $permission; $this->lastUsedBefore = $lastUsedBefore; $this->lastUsedAfter = $lastUsedAfter; + $this->tokenId = $tokenId; $this->perPage = $perPage; $this->page = $page; $this->sort = $sort; @@ -62,7 +65,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - 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}')); + 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}')); } /** @return Observable */ diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrants.php b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrants.php index ea9d4a25276..c1cd2049899 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrants.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrants.php @@ -37,6 +37,8 @@ final class ListPatGrants private string $lastUsedBefore; /**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`. **/ private string $lastUsedAfter; + /**The ID of the token **/ + private array $tokenId; /**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.15/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $perPage; /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.15/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ @@ -46,7 +48,7 @@ final class ListPatGrants /**The direction to sort the results by. **/ private string $direction; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\PersonalAccessTokens $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') + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\PersonalAccessTokens $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') { $this->org = $org; $this->owner = $owner; @@ -54,6 +56,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali $this->permission = $permission; $this->lastUsedBefore = $lastUsedBefore; $this->lastUsedAfter = $lastUsedAfter; + $this->tokenId = $tokenId; $this->perPage = $perPage; $this->page = $page; $this->sort = $sort; @@ -62,7 +65,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - 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-tokens' . '?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}')); + 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-tokens' . '?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}')); } /** @return Observable */ diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrantsListing.php b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrantsListing.php index d4f3b7f46f8..9da6c7fcd7a 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrantsListing.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Orgs/ListPatGrantsListing.php @@ -37,6 +37,8 @@ final class ListPatGrantsListing private string $lastUsedBefore; /**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`. **/ private string $lastUsedAfter; + /**The ID of the token **/ + private array $tokenId; /**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.15/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $perPage; /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.15/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ @@ -46,7 +48,7 @@ final class ListPatGrantsListing /**The direction to sort the results by. **/ private string $direction; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\PersonalAccessTokens $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') + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\PersonalAccessTokens $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') { $this->org = $org; $this->owner = $owner; @@ -54,6 +56,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali $this->permission = $permission; $this->lastUsedBefore = $lastUsedBefore; $this->lastUsedAfter = $lastUsedAfter; + $this->tokenId = $tokenId; $this->perPage = $perPage; $this->page = $page; $this->sort = $sort; @@ -62,7 +65,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - 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-tokens' . '?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}')); + 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-tokens' . '?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}')); } /** @return Observable */ diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/CodeScanning/UpdateAlert.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/CodeScanning/UpdateAlert.php index 1e824a18990..16b4474e1eb 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/CodeScanning/UpdateAlert.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/CodeScanning/UpdateAlert.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $owner, string $repo, int $alertNumber, array $params): CodeScanningAlert { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\CodeScanning\UpdateAlert($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrantRequests.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrantRequests.php index e66c1614b5d..74951ceaaea 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrantRequests.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrantRequests.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(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'): iterable + /** @return iterable */ + public function call(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'): iterable { - $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Orgs\ListPatGrantRequests($this->responseSchemaValidator, $this->hydrator, $org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $perPage, $page, $sort, $direction); + $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Orgs\ListPatGrantRequests($this->responseSchemaValidator, $this->hydrator, $org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrantRequestsListing.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrantRequestsListing.php index 33de0a0b4a5..eedff71f60d 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrantRequestsListing.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrantRequestsListing.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(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'): iterable + /** @return iterable */ + public function call(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'): iterable { - $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Orgs\ListPatGrantRequestsListing($this->responseSchemaValidator, $this->hydrator, $org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $perPage, $page, $sort, $direction); + $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Orgs\ListPatGrantRequestsListing($this->responseSchemaValidator, $this->hydrator, $org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrants.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrants.php index 1eab99187c6..d925a922cb9 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrants.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrants.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(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'): iterable + /** @return iterable */ + public function call(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'): iterable { - $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Orgs\ListPatGrants($this->responseSchemaValidator, $this->hydrator, $org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $perPage, $page, $sort, $direction); + $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Orgs\ListPatGrants($this->responseSchemaValidator, $this->hydrator, $org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrantsListing.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrantsListing.php index ee7e222fc39..b383c19a00a 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrantsListing.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Orgs/ListPatGrantsListing.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(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'): iterable + /** @return iterable */ + public function call(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'): iterable { - $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Orgs\ListPatGrantsListing($this->responseSchemaValidator, $this->hydrator, $org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $perPage, $page, $sort, $direction); + $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Orgs\ListPatGrantsListing($this->responseSchemaValidator, $this->hydrator, $org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForEnterprise.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForEnterprise.php index 6665c6eb236..7d2c83ecca5 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForEnterprise.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForEnterprise.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $enterprise, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort = 'created', string $direction = 'desc', int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\SecretScanning\ListAlertsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $perPage); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForOrg.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForOrg.php index c4de6c75b3a..04af6e4307a 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForOrg.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForOrg.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\SecretScanning\ListAlertsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForOrgListing.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForOrgListing.php index a63936fc2c2..f8d5e4eae11 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForOrgListing.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForOrgListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\SecretScanning\ListAlertsForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForRepo.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForRepo.php index 9f398e2dc66..6bb3619606b 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForRepo.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForRepo.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\SecretScanning\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForRepoListing.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForRepoListing.php index d73db645221..2ef0a92b104 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForRepoListing.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/SecretScanning/ListAlertsForRepoListing.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\SecretScanning\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Five.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Five.php index 67e4b161f93..d8f23a0c469 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Five.php @@ -52,7 +52,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|WithoutBody|iterable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|ActionsEnterprisePermissions|Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|iterable|WithoutBody|GistComment|GhesChecksSystemRequirements|GhesClusterStatus|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\GetManageConfigApplyStatus\Response\ApplicationJson\Ok|GhesLicenseInfo|GhesConfigNodes|GhesGetSettings|GhesReplicationStatus|BasicError|ThreadSubscription|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrganizationRole|OrgPreReceiveHook|RepositoryRuleset|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Installation|Language|LicenseContent|Page|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Four.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Four.php index d9d80c1b163..b76dc801660 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Four.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Four.php @@ -50,7 +50,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): GlobalHook|PreReceiveEnvironment|PreReceiveHook|WebhookConfig|iterable|Installation|ApplicationGrant|WithoutBody|LicenseInfo|EnterpriseOverview|EnterpriseCommentOverview|EnterpriseGistOverview|EnterpriseHookOverview|EnterpriseIssueOverview|EnterpriseMilestoneOverview|EnterpriseOrganizationOverview|EnterprisePageOverview|EnterprisePullRequestOverview|EnterpriseRepositoryOverview|EnterpriseSecurityProductsOverview|EnterpriseUserOverview|EnterpriseSecurityAnalysisSettings|GistSimple|GitignoreTemplate|Thread|Ok|AnnouncementBanner|Json|ExternalGroups|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|GpgKey|Key|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Orgs.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Orgs.php index 1f2ce12b4ea..ce7b90c4057 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Orgs.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Orgs.php @@ -309,7 +309,7 @@ public function listOutsideCollaborators(array $params): iterable return $operator->call($arguments['org'], $arguments['filter'], $arguments['per_page'], $arguments['page']); } - /** @return Observable */ + /** @return iterable */ public function listPatGrantRequests(array $params): iterable { $arguments = []; @@ -349,6 +349,12 @@ public function listPatGrantRequests(array $params): iterable $arguments['last_used_after'] = $params['last_used_after']; unset($params['last_used_after']); + if (array_key_exists('token_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: token_id'); + } + + $arguments['token_id'] = $params['token_id']; + unset($params['token_id']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -375,10 +381,10 @@ public function listPatGrantRequests(array $params): iterable unset($params['direction']); $operator = new Internal\Operator\Orgs\ListPatGrantRequests($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀PersonalAccessTokenRequests()); - return $operator->call($arguments['org'], $arguments['owner'], $arguments['repository'], $arguments['permission'], $arguments['last_used_before'], $arguments['last_used_after'], $arguments['per_page'], $arguments['page'], $arguments['sort'], $arguments['direction']); + return $operator->call($arguments['org'], $arguments['owner'], $arguments['repository'], $arguments['permission'], $arguments['last_used_before'], $arguments['last_used_after'], $arguments['token_id'], $arguments['per_page'], $arguments['page'], $arguments['sort'], $arguments['direction']); } - /** @return Observable */ + /** @return iterable */ public function listPatGrants(array $params): iterable { $arguments = []; @@ -418,6 +424,12 @@ public function listPatGrants(array $params): iterable $arguments['last_used_after'] = $params['last_used_after']; unset($params['last_used_after']); + if (array_key_exists('token_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: token_id'); + } + + $arguments['token_id'] = $params['token_id']; + unset($params['token_id']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -444,7 +456,7 @@ public function listPatGrants(array $params): iterable unset($params['direction']); $operator = new Internal\Operator\Orgs\ListPatGrants($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀PersonalAccessTokens()); - return $operator->call($arguments['org'], $arguments['owner'], $arguments['repository'], $arguments['permission'], $arguments['last_used_before'], $arguments['last_used_after'], $arguments['per_page'], $arguments['page'], $arguments['sort'], $arguments['direction']); + return $operator->call($arguments['org'], $arguments['owner'], $arguments['repository'], $arguments['permission'], $arguments['last_used_before'], $arguments['last_used_after'], $arguments['token_id'], $arguments['per_page'], $arguments['page'], $arguments['sort'], $arguments['direction']); } /** @return Observable */ diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/SecretScanning.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/SecretScanning.php index 943fcd53f25..28a1d29aad6 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/SecretScanning.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/SecretScanning.php @@ -37,7 +37,7 @@ public function getSecurityAnalysisSettingsForEnterprise(array $params): Enterpr return $operator->call($arguments['enterprise']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(array $params): iterable|WithoutBody { $arguments = []; @@ -118,7 +118,7 @@ public function listAlertsForRepo(array $params): iterable|WithoutBody return $operator->call($arguments['owner'], $arguments['repo'], $arguments['state'], $arguments['secret_type'], $arguments['resolution'], $arguments['before'], $arguments['after'], $arguments['validity'], $arguments['sort'], $arguments['direction'], $arguments['page'], $arguments['per_page']); } - /** @return iterable */ + /** @return Observable */ public function listAlertsForEnterprise(array $params): iterable { $arguments = []; @@ -187,7 +187,7 @@ public function listAlertsForEnterprise(array $params): iterable return $operator->call($arguments['enterprise'], $arguments['state'], $arguments['secret_type'], $arguments['resolution'], $arguments['before'], $arguments['after'], $arguments['validity'], $arguments['sort'], $arguments['direction'], $arguments['per_page']); } - /** @return iterable */ + /** @return Observable */ public function listAlertsForOrg(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Six.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Six.php index a686b1e69b1..d580d991783 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Six.php @@ -70,7 +70,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): PreReceiveEnvironmentDownloadStatus|ActionsCacheUsageOrgEnterprise|ActionsCacheUsagePolicyEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\GetManageConfigApplyEvents\Response\ApplicationJson\Ok|WithoutBody|GhesLicenseCheck|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodeSecurityConfiguration|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Package|CustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|CommitComment|Commit|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|RepositoryPreReceiveHook|PullRequest|Release|RepositoryRuleset|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|ScimEnterpriseGroupList|ScimEnterpriseUserList|TeamRepository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Five.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Five.php index 8882ef251de..dda11c9dc13 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Five.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Five.php @@ -16,7 +16,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Four.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Four.php index 8306a8a22ae..b69cf25199d 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Four.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Four.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Orgs.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Orgs.php index 957127c96e3..9d3b70f0e31 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Orgs.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Orgs.php @@ -228,7 +228,7 @@ public function listOutsideCollaboratorsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ public function listPatGrantRequestsListing(array $params): iterable { $arguments = []; @@ -268,6 +268,12 @@ public function listPatGrantRequestsListing(array $params): iterable $arguments['last_used_after'] = $params['last_used_after']; unset($params['last_used_after']); + if (array_key_exists('token_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: token_id'); + } + + $arguments['token_id'] = $params['token_id']; + unset($params['token_id']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -295,7 +301,7 @@ public function listPatGrantRequestsListing(array $params): iterable $arguments['page'] = 1; do { $operator = new Internal\Operator\Orgs\ListPatGrantRequestsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀PersonalAccessTokenRequests()); - $items = [...$operator->call($arguments['org'], $arguments['owner'], $arguments['repository'], $arguments['permission'], $arguments['last_used_before'], $arguments['last_used_after'], $arguments['per_page'], $arguments['page'], $arguments['sort'], $arguments['direction'])]; + $items = [...$operator->call($arguments['org'], $arguments['owner'], $arguments['repository'], $arguments['permission'], $arguments['last_used_before'], $arguments['last_used_after'], $arguments['token_id'], $arguments['per_page'], $arguments['page'], $arguments['sort'], $arguments['direction'])]; yield from $items; @@ -303,7 +309,7 @@ public function listPatGrantRequestsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ public function listPatGrantsListing(array $params): iterable { $arguments = []; @@ -343,6 +349,12 @@ public function listPatGrantsListing(array $params): iterable $arguments['last_used_after'] = $params['last_used_after']; unset($params['last_used_after']); + if (array_key_exists('token_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: token_id'); + } + + $arguments['token_id'] = $params['token_id']; + unset($params['token_id']); if (array_key_exists('per_page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: per_page'); } @@ -370,7 +382,7 @@ public function listPatGrantsListing(array $params): iterable $arguments['page'] = 1; do { $operator = new Internal\Operator\Orgs\ListPatGrantsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀PersonalAccessTokens()); - $items = [...$operator->call($arguments['org'], $arguments['owner'], $arguments['repository'], $arguments['permission'], $arguments['last_used_before'], $arguments['last_used_after'], $arguments['per_page'], $arguments['page'], $arguments['sort'], $arguments['direction'])]; + $items = [...$operator->call($arguments['org'], $arguments['owner'], $arguments['repository'], $arguments['permission'], $arguments['last_used_before'], $arguments['last_used_after'], $arguments['token_id'], $arguments['per_page'], $arguments['page'], $arguments['sort'], $arguments['direction'])]; yield from $items; diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/SecretScanning.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/SecretScanning.php index 1fe7eb67ab7..6e0faf82d39 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/SecretScanning.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/SecretScanning.php @@ -21,7 +21,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable */ + /** @return Observable */ public function listAlertsForOrgListing(array $params): iterable { $arguments = []; @@ -102,7 +102,7 @@ public function listAlertsForOrgListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Six.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Six.php index e857e464454..8577391cabb 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Six.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Six.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|WithoutBody|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Patch/CodeScanning.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Patch/CodeScanning.php index 76d1f89f954..030665bed3c 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Patch/CodeScanning.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/Patch/CodeScanning.php @@ -42,6 +42,7 @@ public function updateDefaultSetup(array $params): EmptyObject|CodeScanningDefau return $operator->call($arguments['owner'], $arguments['repo'], $params); } + /** @return */ public function updateAlert(array $params): CodeScanningAlert { $arguments = []; diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Patch/Seven.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Patch/Seven.php index 624131f90f6..46952949b86 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Patch/Seven.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/Patch/Seven.php @@ -26,7 +26,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\CodeScanningAlert */ public function call(string $call, array $params, array $pathChunks): TeamDiscussion|WithoutBody|CodeScanningAlert|DependabotAlert|GitRef|WebhookConfig|IssueComment|PullRequestReviewComment|ReleaseAsset|SecretScanningAlert|GroupResponse|UserResponse|TeamDiscussionComment { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Operation/CodeScanning.php b/clients/GitHubEnterprise-3.15/src/Operation/CodeScanning.php index 5cab50b880e..1a0d5c77f3a 100644 --- a/clients/GitHubEnterprise-3.15/src/Operation/CodeScanning.php +++ b/clients/GitHubEnterprise-3.15/src/Operation/CodeScanning.php @@ -64,6 +64,7 @@ public function getAlert(string $owner, string $repo, int $alertNumber): CodeSca return $this->operators->codeScanning👷GetAlert()->call($owner, $repo, $alertNumber); } + /** @return */ public function updateAlert(string $owner, string $repo, int $alertNumber, array $params): CodeScanningAlert { return $this->operators->codeScanning👷UpdateAlert()->call($owner, $repo, $alertNumber, $params); diff --git a/clients/GitHubEnterprise-3.15/src/Operation/Orgs.php b/clients/GitHubEnterprise-3.15/src/Operation/Orgs.php index 528b441cabb..286ffef7039 100644 --- a/clients/GitHubEnterprise-3.15/src/Operation/Orgs.php +++ b/clients/GitHubEnterprise-3.15/src/Operation/Orgs.php @@ -336,16 +336,16 @@ public function removeOutsideCollaborator(string $org, string $username): Withou return $this->operators->orgs👷RemoveOutsideCollaborator()->call($org, $username); } - /** @return Observable */ - public function listPatGrantRequests(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, int $perPage, int $page, string $sort, string $direction): iterable + /** @return iterable */ + public function listPatGrantRequests(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage, int $page, string $sort, string $direction): iterable { - return $this->operators->orgs👷ListPatGrantRequests()->call($org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $perPage, $page, $sort, $direction); + return $this->operators->orgs👷ListPatGrantRequests()->call($org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); } - /** @return Observable */ - public function listPatGrantRequestsListing(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, int $perPage, int $page, string $sort, string $direction): iterable + /** @return iterable */ + public function listPatGrantRequestsListing(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage, int $page, string $sort, string $direction): iterable { - return $this->operators->orgs👷ListPatGrantRequestsListing()->call($org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $perPage, $page, $sort, $direction); + return $this->operators->orgs👷ListPatGrantRequestsListing()->call($org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); } /** @return */ @@ -372,16 +372,16 @@ public function listPatGrantRequestRepositoriesListing(string $org, int $patRequ return $this->operators->orgs👷ListPatGrantRequestRepositoriesListing()->call($org, $patRequestId, $perPage, $page); } - /** @return Observable */ - public function listPatGrants(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, int $perPage, int $page, string $sort, string $direction): iterable + /** @return iterable */ + public function listPatGrants(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage, int $page, string $sort, string $direction): iterable { - return $this->operators->orgs👷ListPatGrants()->call($org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $perPage, $page, $sort, $direction); + return $this->operators->orgs👷ListPatGrants()->call($org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); } - /** @return Observable */ - public function listPatGrantsListing(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, int $perPage, int $page, string $sort, string $direction): iterable + /** @return iterable */ + public function listPatGrantsListing(string $org, array $owner, string $repository, string $permission, string $lastUsedBefore, string $lastUsedAfter, array $tokenId, int $perPage, int $page, string $sort, string $direction): iterable { - return $this->operators->orgs👷ListPatGrantsListing()->call($org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $perPage, $page, $sort, $direction); + return $this->operators->orgs👷ListPatGrantsListing()->call($org, $owner, $repository, $permission, $lastUsedBefore, $lastUsedAfter, $tokenId, $perPage, $page, $sort, $direction); } /** @return */ diff --git a/clients/GitHubEnterprise-3.15/src/Operation/SecretScanning.php b/clients/GitHubEnterprise-3.15/src/Operation/SecretScanning.php index d3733412a99..c8976a5aa1c 100644 --- a/clients/GitHubEnterprise-3.15/src/Operation/SecretScanning.php +++ b/clients/GitHubEnterprise-3.15/src/Operation/SecretScanning.php @@ -29,7 +29,7 @@ public function patchSecurityAnalysisSettingsForEnterprise(string $enterprise, a return $this->operators->secretScanning👷PatchSecurityAnalysisSettingsForEnterprise()->call($enterprise, $params); } - /** @return iterable */ + /** @return Observable */ public function listAlertsForEnterprise(string $enterprise, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort, string $direction, int $perPage): iterable { return $this->operators->secretScanning👷ListAlertsForEnterprise()->call($enterprise, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $perPage); @@ -41,25 +41,25 @@ public function postSecurityProductEnablementForEnterprise(string $enterprise, s return $this->operators->secretScanning👷PostSecurityProductEnablementForEnterprise()->call($enterprise, $securityProduct, $enablement); } - /** @return iterable */ + /** @return Observable */ public function listAlertsForOrg(string $org, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort, string $direction, int $page, int $perPage): iterable { return $this->operators->secretScanning👷ListAlertsForOrg()->call($org, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage); } - /** @return iterable */ + /** @return Observable */ public function listAlertsForOrgListing(string $org, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort, string $direction, int $page, int $perPage): iterable { return $this->operators->secretScanning👷ListAlertsForOrgListing()->call($org, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(string $owner, string $repo, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort, string $direction, int $page, int $perPage): iterable|WithoutBody { return $this->operators->secretScanning👷ListAlertsForRepo()->call($owner, $repo, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(string $owner, string $repo, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort, string $direction, int $page, int $perPage): iterable|WithoutBody { return $this->operators->secretScanning👷ListAlertsForRepoListing()->call($owner, $repo, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage); diff --git a/clients/GitHubEnterprise-3.15/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.15/src/PHPStan/ClientCallReturnTypes.php index 11a2ae07976..c93fad91412 100644 --- a/clients/GitHubEnterprise-3.15/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.15/src/PHPStan/ClientCallReturnTypes.php @@ -608,7 +608,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /enterprises/{enterprise}/secret-scanning/alerts') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /enterprises/{enterprise}/settings/billing/advanced-security') { @@ -1552,11 +1552,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/personal-access-token-requests') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /orgs/{org}/personal-access-token-requests') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'POST /orgs/{org}/personal-access-token-requests') { @@ -1576,11 +1576,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/personal-access-tokens') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /orgs/{org}/personal-access-tokens') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'POST /orgs/{org}/personal-access-tokens') { @@ -1736,11 +1736,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/secret-scanning/alerts') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /orgs/{org}/secret-scanning/alerts') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /orgs/{org}/security-managers') { @@ -2592,7 +2592,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}') { - return $this->typeResolver->resolve('Schema\\CodeScanningAlert'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances') { @@ -3752,11 +3752,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/secret-scanning/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'LIST /repos/{owner}/{repo}/secret-scanning/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}') { diff --git a/clients/GitHubEnterprise-3.15/src/Schema/HookDeliveryItem.php b/clients/GitHubEnterprise-3.15/src/Schema/HookDeliveryItem.php index 6852778a986..cfa7616aa1e 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/HookDeliveryItem.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/HookDeliveryItem.php @@ -28,6 +28,7 @@ "id": { "type": "integer", "description": "Unique identifier of the webhook delivery.", + "format": "int64", "examples": [ 42 ] @@ -98,6 +99,7 @@ "null" ], "description": "The id of the GitHub App installation associated with this event.", + "format": "int64", "examples": [ 123 ] @@ -108,6 +110,7 @@ "null" ], "description": "The id of the repository associated with this event.", + "format": "int64", "examples": [ 123 ] diff --git a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantRequestsListingTest.php b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantRequestsListingTest.php index 88624232390..794f80180e4 100644 --- a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantRequestsListingTest.php +++ b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantRequestsListingTest.php @@ -31,7 +31,7 @@ public function call_httpCode_500_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrantRequestsListing::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -40,6 +40,7 @@ public function call_httpCode_500_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -61,9 +62,9 @@ public function operations_httpCode_500_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrantRequestsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrantRequestsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); foreach ($result as $item) { } } @@ -78,7 +79,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrantRequestsListing::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -87,6 +88,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -108,9 +110,9 @@ public function operations_httpCode_422_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrantRequestsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrantRequestsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); foreach ($result as $item) { } } @@ -125,7 +127,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrantRequestsListing::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -134,6 +136,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -155,9 +158,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrantRequestsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrantRequestsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); foreach ($result as $item) { } } @@ -172,7 +175,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrantRequestsListing::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -181,6 +184,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -202,9 +206,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrantRequestsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrantRequestsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); foreach ($result as $item) { } } diff --git a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantRequestsTest.php b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantRequestsTest.php index c25bf224241..5594967f4da 100644 --- a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantRequestsTest.php +++ b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantRequestsTest.php @@ -31,7 +31,7 @@ public function call_httpCode_500_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrantRequests::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -40,6 +40,7 @@ public function call_httpCode_500_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -59,9 +60,9 @@ public function operations_httpCode_500_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrantRequests('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrantRequests('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); } /** @test */ @@ -74,7 +75,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrantRequests::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -83,6 +84,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -102,9 +104,9 @@ public function operations_httpCode_422_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrantRequests('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrantRequests('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); } /** @test */ @@ -117,7 +119,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrantRequests::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -126,6 +128,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -145,9 +148,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrantRequests('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrantRequests('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); } /** @test */ @@ -160,7 +163,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrantRequests::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -169,6 +172,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -188,8 +192,8 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-token-requests?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrantRequests('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrantRequests('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); } } diff --git a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantsListingTest.php b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantsListingTest.php index f4b7f8962e9..6bd33517f40 100644 --- a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantsListingTest.php +++ b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantsListingTest.php @@ -31,7 +31,7 @@ public function call_httpCode_500_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrantsListing::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -40,6 +40,7 @@ public function call_httpCode_500_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -61,9 +62,9 @@ public function operations_httpCode_500_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrantsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrantsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); foreach ($result as $item) { } } @@ -78,7 +79,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrantsListing::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -87,6 +88,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -108,9 +110,9 @@ public function operations_httpCode_422_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrantsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrantsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); foreach ($result as $item) { } } @@ -125,7 +127,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrantsListing::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -134,6 +136,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -155,9 +158,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrantsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrantsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); foreach ($result as $item) { } } @@ -172,7 +175,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrantsListing::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -181,6 +184,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -202,9 +206,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrantsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrantsListing('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); foreach ($result as $item) { } } diff --git a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantsTest.php b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantsTest.php index 8ddb715b448..b4708d68b50 100644 --- a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantsTest.php +++ b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Orgs/ListPatGrantsTest.php @@ -31,7 +31,7 @@ public function call_httpCode_500_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrants::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -40,6 +40,7 @@ public function call_httpCode_500_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -59,9 +60,9 @@ public function operations_httpCode_500_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrants('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrants('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); } /** @test */ @@ -74,7 +75,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrants::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -83,6 +84,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -102,9 +104,9 @@ public function operations_httpCode_422_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrants('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrants('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); } /** @test */ @@ -117,7 +119,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrants::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -126,6 +128,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -145,9 +148,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrants('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrants('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); } /** @test */ @@ -160,7 +163,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Orgs\ListPatGrants::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -169,6 +172,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['permission'] = 'generated'; $data['last_used_before'] = '1970-01-01T00:00:00+00:00'; $data['last_used_after'] = '1970-01-01T00:00:00+00:00'; + $data['token_id'] = null; $data['per_page'] = 8; $data['page'] = 1; $data['sort'] = 'generated'; @@ -188,8 +192,8 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/personal-access-tokens?owner=&repository=generated&permission=generated&last_used_before=1970-01-01T00:00:00+00:00&last_used_after=1970-01-01T00:00:00+00:00&token_id=&per_page=8&page=1&sort=generated&direction=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listPatGrants('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1, 'generated', 'generated'); + $result = $client->operations()->orgs()->listPatGrants('generated', null, 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', null, 8, 1, 'generated', 'generated'); } } diff --git a/clients/GitHubEnterprise-3.15/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.15/tests/Types/ClientCallReturnTypes.php index 92440d2f85b..eb18b714e46 100644 --- a/clients/GitHubEnterprise-3.15/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.15/tests/Types/ClientCallReturnTypes.php @@ -158,7 +158,7 @@ function authHeader(): string assertType('', $client->call('GET /enterprises/{enterprise}/code_security_and_analysis')); assertType('', $client->call('PATCH /enterprises/{enterprise}/code_security_and_analysis')); assertType('Observable|WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); -assertType('iterable', $client->call('GET /enterprises/{enterprise}/secret-scanning/alerts')); +assertType('Observable', $client->call('GET /enterprises/{enterprise}/secret-scanning/alerts')); assertType('', $client->call('GET /enterprises/{enterprise}/settings/billing/advanced-security')); assertType('', $client->call('POST /enterprises/{enterprise}/{security_product}/{enablement}')); assertType('Observable|WithoutBody', $client->call('GET /events')); @@ -394,14 +394,14 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}')); assertType('', $client->call('DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}')); assertType('', $client->call('POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore')); -assertType('Observable', $client->call('GET /orgs/{org}/personal-access-token-requests')); -assertType('Observable', $client->call('LIST /orgs/{org}/personal-access-token-requests')); +assertType('iterable', $client->call('GET /orgs/{org}/personal-access-token-requests')); +assertType('iterable', $client->call('LIST /orgs/{org}/personal-access-token-requests')); assertType('', $client->call('POST /orgs/{org}/personal-access-token-requests')); assertType('', $client->call('POST /orgs/{org}/personal-access-token-requests/{pat_request_id}')); assertType('Observable', $client->call('GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories')); assertType('Observable', $client->call('LIST /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories')); -assertType('Observable', $client->call('GET /orgs/{org}/personal-access-tokens')); -assertType('Observable', $client->call('LIST /orgs/{org}/personal-access-tokens')); +assertType('iterable', $client->call('GET /orgs/{org}/personal-access-tokens')); +assertType('iterable', $client->call('LIST /orgs/{org}/personal-access-tokens')); assertType('', $client->call('POST /orgs/{org}/personal-access-tokens')); assertType('', $client->call('POST /orgs/{org}/personal-access-tokens/{pat_id}')); assertType('Observable', $client->call('GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories')); @@ -440,8 +440,8 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/rulesets/{ruleset_id}')); assertType('', $client->call('PUT /orgs/{org}/rulesets/{ruleset_id}')); assertType('', $client->call('DELETE /orgs/{org}/rulesets/{ruleset_id}')); -assertType('iterable', $client->call('GET /orgs/{org}/secret-scanning/alerts')); -assertType('iterable', $client->call('LIST /orgs/{org}/secret-scanning/alerts')); +assertType('Observable', $client->call('GET /orgs/{org}/secret-scanning/alerts')); +assertType('Observable', $client->call('LIST /orgs/{org}/secret-scanning/alerts')); assertType('Observable', $client->call('GET /orgs/{org}/security-managers')); assertType('', $client->call('PUT /orgs/{org}/security-managers/teams/{team_slug}')); assertType('', $client->call('DELETE /orgs/{org}/security-managers/teams/{team_slug}')); @@ -654,7 +654,7 @@ function authHeader(): string assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts')); assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts')); assertType('', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); -assertType('Schema\\CodeScanningAlert', $client->call('PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); +assertType('', $client->call('PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/code-scanning/analyses')); @@ -944,8 +944,8 @@ function authHeader(): string assertType('', $client->call('GET /repos/{owner}/{repo}/rulesets/{ruleset_id}')); assertType('', $client->call('PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('LIST /repos/{owner}/{repo}/secret-scanning/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts')); +assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/secret-scanning/alerts')); assertType('', $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}')); assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations')); diff --git a/etc/specs/GitHubEnterprise-3.15/current.spec.yaml b/etc/specs/GitHubEnterprise-3.15/current.spec.yaml index 6ff943270e7..7af1241db82 100644 --- a/etc/specs/GitHubEnterprise-3.15/current.spec.yaml +++ b/etc/specs/GitHubEnterprise-3.15/current.spec.yaml @@ -15209,6 +15209,7 @@ paths: - "$ref": "#/components/parameters/personal-access-token-permission" - "$ref": "#/components/parameters/personal-access-token-before" - "$ref": "#/components/parameters/personal-access-token-after" + - "$ref": "#/components/parameters/personal-access-token-token-id" responses: '500': "$ref": "#/components/responses/internal_error" @@ -15451,6 +15452,7 @@ paths: - "$ref": "#/components/parameters/personal-access-token-permission" - "$ref": "#/components/parameters/personal-access-token-before" - "$ref": "#/components/parameters/personal-access-token-after" + - "$ref": "#/components/parameters/personal-access-token-token-id" responses: '500': "$ref": "#/components/responses/internal_error" @@ -30608,7 +30610,7 @@ paths: The authenticated user must have admin or owner permissions to the repository to use this endpoint. - For more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/enterprise-server@3.15/rest/apps/apps#get-an-app). + For more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/enterprise-server@3.15/rest/apps/apps#get-an-app), as well as the [guide to creating custom deployment protection rules](https://docs.github.com/enterprise-server@3.15/actions/managing-workflow-runs-and-deployments/managing-deployments/creating-custom-deployment-protection-rules). OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. tags: @@ -68336,6 +68338,7 @@ components: id: description: Unique identifier of the webhook delivery. type: integer + format: int64 examples: - 42 guid: @@ -68388,6 +68391,7 @@ components: type: - integer - 'null' + format: int64 examples: - 123 repository_id: @@ -68395,6 +68399,7 @@ components: type: - integer - 'null' + format: int64 examples: - 123 throttled_at: @@ -217837,6 +217842,18 @@ components: schema: type: string format: date-time + personal-access-token-token-id: + name: token_id + description: The ID of the token + in: query + required: false + schema: + type: array + maxItems: 50 + items: + type: string + examples: + - token_id[]=1,token_id[]=2 fine-grained-personal-access-token-id: name: pat_id description: The unique identifier of the fine-grained personal access token.