diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 6cad3009449..0a928263fdb 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "808b83641f5a6cdecf73cd52f50366e7", + "specHash": "85662c80b53f38fb1fdf4e581c839168", "generatedFiles": { "files": [ { @@ -564,7 +564,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRulePullRequest.php", - "hash": "e9837cbd78ccc8a1dc88560070b178cb" + "hash": "1515019feeb8162e78c28289262e1d24" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsStatusCheckConfiguration.php", @@ -600,11 +600,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRule.php", - "hash": "2c49cdfc9a119002a5c040ba141d10e2" + "hash": "91c7ac9573eb32fb3215679ff2902ba7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php", - "hash": "9592fdbf04df8769eb40eeafd19235de" + "hash": "b148af999781e1841d4bbeb1729b0bb5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsBillingUsage.php", @@ -2712,7 +2712,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRulePullRequest\/Parameters.php", - "hash": "06ba6c84f87320fe875d65cc03060619" + "hash": "890cf401cdff8d30a6b13d9a290b1059" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleRequiredStatusChecks\/Parameters.php", @@ -4612,11 +4612,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "80fff462ea0fb97f97856c88d576f61d" + "hash": "b189dccda6487b31c78efbd3547ff0c5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "0caf5c1f7ee42637f22f82a00a8a206d" + "hash": "5ded3557f7313bbfaa871698a53da4fd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php", @@ -5320,11 +5320,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "595db9b9c13481e77661288022ff9d30" + "hash": "3b6ef56edb2b344b2735ed73210447c0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "c8d8d26e3008d77eeda4226a7e8bf0d3" + "hash": "dedd1b228f943df806c2d320ff2fb07a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php", @@ -5548,7 +5548,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Issues.php", - "hash": "83469cbec0e660cb4cedcd2a9201bc41" + "hash": "b3afb3b7a3a5974c497eaeb747b1a589" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Licenses.php", @@ -5560,7 +5560,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "eafb3bc49f410fd2608a4b5db1174d08" + "hash": "4652d7fe02e0830faa310d7d91dec8ba" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php", @@ -5596,7 +5596,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "650788b4ab2ff5382db8df6bcfb15367" + "hash": "871931cc603472974d1eb4aedea5f80f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -11564,7 +11564,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleDetailed.php", - "hash": "4a32236a36ffdd1f691dabe7382f6bc3" + "hash": "00c4bbb14b11e0b8cc64c43f8a08539f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php", @@ -11680,15 +11680,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php", - "hash": "a55bd124d9bbe055cc0f0ebf3685656f" + "hash": "6374f7a8d4cdd286c4e283c3d533dc22" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php", - "hash": "2475d716e21d2114c7fec6eedcb9beea" + "hash": "da43fa70197a959e803f75ea4292e5cc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php", - "hash": "aed0330b61869e248196c22deb973c44" + "hash": "66a02e2499a17f932a12da2ac53f6f58" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewApproved\/WorkflowRun\/Actor.php", @@ -11920,7 +11920,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes.php", - "hash": "4970c244c239036f8d6e25638ab0d71a" + "hash": "b0f593db7c96615e2dad6e1469ce5849" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Conditions.php", @@ -11948,11 +11948,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules.php", - "hash": "98446c71859f6a79b001fe0844f50b47" + "hash": "26883f33ae868b27d6603830d137643e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated.php", - "hash": "fb96108dd80acf3572d27674d4178694" + "hash": "bdbfe86e35b8c68c323750f840cef84e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Changes.php", @@ -14304,7 +14304,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForOrg.php", - "hash": "183280b671de7938327078af3ebffd29" + "hash": "2af59aff14f0e8fe99396d5a3fb4fcd5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForOrgTest.php", @@ -14316,7 +14316,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForOrgListing.php", - "hash": "00ef28eef2e88dabefcc6e36b9293df0" + "hash": "7527a7233fed24197f8cb50694b2dbe4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForOrgListingTest.php", @@ -19220,7 +19220,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForRepo.php", - "hash": "599ae7a0c9e34acfa02a6c07ca8f3246" + "hash": "691bb70e88940af2c996bc1e19b9e466" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForRepoTest.php", @@ -19232,7 +19232,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForRepoListing.php", - "hash": "1aefbdbc3e69263ac048e371da008172" + "hash": "41853c3051304334164c3e2b1f646332" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForRepoListingTest.php", @@ -20868,11 +20868,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetBranchRules.php", - "hash": "c4fa5fe905b3d3c32913dc3e5abd8433" + "hash": "240ac162f74b698a3123731a6788e93f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRules.php", - "hash": "e151bf4487dda0d9ba1f0d299e3403a3" + "hash": "d3d4c1d3680ec79d451d87878dd1d32e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesTest.php", @@ -20880,11 +20880,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetBranchRulesListing.php", - "hash": "c04fae47cee035e813e6d8d9ee3e1f8f" + "hash": "9a366bbdc1e6d5a86c4c3c16d3a68222" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRulesListing.php", - "hash": "e330b3b16b00f944282f9ec109843359" + "hash": "97e7c705cefd4c931ea0306482da04db" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesListingTest.php", @@ -24276,7 +24276,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Rule.php", - "hash": "7b6597498226b0e05c95d3cfdc4af15f" + "hash": "e64f13c74714f3cc30c55e3a9e8bf605" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson\/Conditions.php", @@ -24324,7 +24324,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Issues.php", - "hash": "5524daffaa3c2319b9b09dce3ec9f252" + "hash": "76c286040b7c77209bb432bc2e9bdaa7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Licenses.php", @@ -24332,7 +24332,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Orgs.php", - "hash": "4239599c21c71f5fc54a6e9d089301a4" + "hash": "3acabf0db5708a566a084b18bde1d7d1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/RateLimit.php", @@ -24340,7 +24340,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php", - "hash": "f3c057e95467f78b518e207d78fb7676" + "hash": "c844bbb8acb7a53860f417408706cf84" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php", @@ -24436,7 +24436,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Orgs.php", - "hash": "2c11e03a592bad87f6bb12a4d580c7e9" + "hash": "7fd3a4e5e45e7750d8ca19c76b2ee924" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Migrations.php", @@ -24600,7 +24600,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Issues.php", - "hash": "d9cebed1823ae968436da35899feda8b" + "hash": "934a0baec48aeca1aaf64a0f69a3fc75" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Migrations.php", @@ -24616,7 +24616,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "82ae876f21fbe0e2cf915364acb7c738" + "hash": "02db131d7a46cc7db66c77922882bb32" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -24692,7 +24692,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Orgs.php", - "hash": "9413f15c95bb3779ad5a4b5d1c7a06f6" + "hash": "1edc1ef9dc14ac8585ff1d5b73b8f774" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Teams.php", @@ -24752,7 +24752,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Orgs.php", - "hash": "adf00daf7173993f45a50f968a11e592" + "hash": "373f5a0004b72907f2f8f9425723a7b1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Codespaces.php", @@ -24828,11 +24828,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "362b1b8309bf627fec638eb0b155281b" + "hash": "3bc0dd38275778fdbfdac7d2f71c8b72" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "dbfb613b4f6c535e5c90cac507a0939d" + "hash": "f5ec8d2962554a8e1637fe776cd73689" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", @@ -24840,7 +24840,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "d344dc282b0dbc9a24f0a51d85a03ba7" + "hash": "1592d438d90b74b5de8e22353e18a4e0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -24856,7 +24856,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Four.php", - "hash": "58f962b54c6ad5b2b7550bee6176d36b" + "hash": "b315e5913ecf947195e0031522b73764" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php", @@ -24932,11 +24932,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php", - "hash": "abfb7bcc621e7b5acd65ee1f3ae87bfa" + "hash": "0bd1bbcad8e6f0a66a2ee13388a836ac" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "6cf900ad2dd7d8c4a6b67af7c06120d4" + "hash": "7516af6b41f8a9d3b475684f306347be" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", @@ -24944,7 +24944,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "be6f6537f1f4b57686f13d4657a37b03" + "hash": "63d0c6b7c1dd7ec9eca9728d2c1ca4ec" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -24964,7 +24964,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Five.php", - "hash": "3e3810430ec82d3f3bd6c316d8906e08" + "hash": "a4ca62325ec26dc6754b4c94a6c434bd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Three.php", @@ -24992,7 +24992,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Five.php", - "hash": "7a8f8a77aa149161b97e0ea057d28605" + "hash": "262d6031ee353f308dc5ae68adb9fe56" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Four.php", @@ -27612,11 +27612,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "44eccde38011241f8697895fb62ffceb" + "hash": "23580fdcd0f3080d5c2b11ed768d1bf8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "ddcb6cf595ecdff3a8e701126c96a48f" + "hash": "04f52ce89ea0d42bac5e418c6d413ab2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -28982,30 +28982,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksTeam1.php", "hash": "999864413808380113061ec96c4841c0" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Fifteen.php", - "hash": "76594874c0e427d6dd005cb9278d4d4b" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Fifteen\/Parameters.php", - "hash": "f2627c90bce12da5ca4ffd6804020295" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Sixteen.php", - "hash": "d974a5ceb0c5edb7809951da446ee867" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Sixteen\/Parameters.php", - "hash": "3a005af5fd276175274da916834369a2" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Seventeen.php", - "hash": "84cc0841df7a59bae4f6e9fbdccf5b30" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Seventeen\/Parameters.php", - "hash": "ab171d0fd537007f74472032861309d7" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksComment\/Reactions.php", "hash": "12a67eef3cb8a989acc54b8e1d7cfe51" @@ -29878,14 +29854,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMergeQueue\/Parameters.php", "hash": "63ead8aaf1cd72853d94b3eb5ff59de1" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Eighteen.php", - "hash": "b2b33f739226ccfb43aececd62766240" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Eighteen\/Parameters.php", - "hash": "e1f28caa9eb8cadf96ff706a4ea2b302" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForTeam.php", "hash": "113b3a54860b29bc12312d2cc4af45ce" @@ -31928,7 +31896,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListIssueTypes.php", - "hash": "6aa64ea3ef3bfd6f2429e22019391afc" + "hash": "074067b123a08c1c473132b105e30d2c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListIssueTypesTest.php", @@ -31940,7 +31908,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/CreateIssueType.php", - "hash": "cfec27a5dbe42bd623409bde67e85cd4" + "hash": "135b5ca67f8a6911816af49dd873ffbd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/CreateIssueTypeTest.php", @@ -31952,7 +31920,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/UpdateIssueType.php", - "hash": "fa6033a19652032ea140998e04137498" + "hash": "07deb9043b4058476651bd153e409041" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/UpdateIssueTypeTest.php", @@ -31964,7 +31932,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/DeleteIssueType.php", - "hash": "cdc083d2c072a4e1e3d6f0d434b56841" + "hash": "dc5b602649d474d2dbe70efa857327fe" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/DeleteIssueTypeTest.php", @@ -32001,6 +31969,38 @@ { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/IssueTypes\/IssueTypeId.php", "hash": "798b4eb7766bbca405a34f68c911a681" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleFilePathRestriction.php", + "hash": "6d184a7e43345415008725c652cdf6e3" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMaxFilePathLength.php", + "hash": "953005a0443948fed5909fdc0e5356ca" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleFileExtensionRestriction.php", + "hash": "2bf22d93f7e6bcdb0c5c5a3dcfd84f16" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMaxFileSize.php", + "hash": "b744cee366dd40e98b0fd5fc7d305ddb" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleFilePathRestriction\/Parameters.php", + "hash": "edd1c5afb5d01d0052f9fd94bf33e776" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMaxFilePathLength\/Parameters.php", + "hash": "09fdf9035f0115ec0de2a01d77d50253" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleFileExtensionRestriction\/Parameters.php", + "hash": "64a91d60ae4ca1e3e70985d2ee3f9e1f" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMaxFileSize\/Parameters.php", + "hash": "30374f0cc216584120ff27ea39a30c18" } ] }, diff --git a/clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php b/clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php index 3b84c747897..2973d87eb16 100644 --- a/clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php +++ b/clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php @@ -132,28 +132,28 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed if ($signature === 'parameters|type' && $value['type'] === 'file_path_restriction') { try { - return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Fifteen::class, $value); + return $hydrator->hydrateObject(Schema\RepositoryRuleFilePathRestriction::class, $value); } catch (Throwable) { } } if ($signature === 'parameters|type' && $value['type'] === 'max_file_path_length') { try { - return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Sixteen::class, $value); + return $hydrator->hydrateObject(Schema\RepositoryRuleMaxFilePathLength::class, $value); } catch (Throwable) { } } if ($signature === 'parameters|type' && $value['type'] === 'file_extension_restriction') { try { - return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Seventeen::class, $value); + return $hydrator->hydrateObject(Schema\RepositoryRuleFileExtensionRestriction::class, $value); } catch (Throwable) { } } if ($signature === 'parameters|type' && $value['type'] === 'max_file_size') { try { - return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Eighteen::class, $value); + return $hydrator->hydrateObject(Schema\RepositoryRuleMaxFileSize::class, $value); } catch (Throwable) { } } diff --git a/clients/GitHub/src/Internal/Operation/Repos/GetBranchRules.php b/clients/GitHub/src/Internal/Operation/Repos/GetBranchRules.php index 617e42a3312..069e329807e 100644 --- a/clients/GitHub/src/Internal/Operation/Repos/GetBranchRules.php +++ b/clients/GitHub/src/Internal/Operation/Repos/GetBranchRules.php @@ -49,7 +49,7 @@ public function createRequest(): RequestInterface return new Request('GET', str_replace(['{owner}', '{repo}', '{branch}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->branch, $this->perPage, $this->page], '/repos/{owner}/{repo}/rules/branches/{branch}' . '?per_page={per_page}&page={page}')); } - /** @return Observable */ + /** @return Observable */ public function createResponse(ResponseInterface $response): Observable { $code = $response->getStatusCode(); @@ -62,7 +62,7 @@ public function createResponse(ResponseInterface $response): Observable * Response **/ case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning { + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleFilePathRestriction|Schema\RepositoryRuleMaxFilePathLength|Schema\RepositoryRuleFileExtensionRestriction|Schema\RepositoryRuleMaxFileSize|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning { $error = new RuntimeException(); try { $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCreation::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); @@ -200,23 +200,59 @@ public function createResponse(ResponseInterface $response): Observable items_application_json_two_hundred_aaaao: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleWorkflows::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleFilePathRestriction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleWorkflows::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleFilePathRestriction::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaap; } items_application_json_two_hundred_aaaap: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCodeScanning::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleMaxFilePathLength::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleCodeScanning::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleMaxFilePathLength::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaaq; } items_application_json_two_hundred_aaaaq: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleFileExtensionRestriction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryRuleFileExtensionRestriction::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaar; + } + + items_application_json_two_hundred_aaaar: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleMaxFileSize::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryRuleMaxFileSize::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaas; + } + + items_application_json_two_hundred_aaaas: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleWorkflows::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryRuleWorkflows::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaat; + } + + items_application_json_two_hundred_aaaat: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCodeScanning::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryRuleCodeScanning::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaau; + } + + items_application_json_two_hundred_aaaau: throw $error; }); } diff --git a/clients/GitHub/src/Internal/Operation/Repos/GetBranchRulesListing.php b/clients/GitHub/src/Internal/Operation/Repos/GetBranchRulesListing.php index c95405eaf35..ccbcb3fae54 100644 --- a/clients/GitHub/src/Internal/Operation/Repos/GetBranchRulesListing.php +++ b/clients/GitHub/src/Internal/Operation/Repos/GetBranchRulesListing.php @@ -49,7 +49,7 @@ public function createRequest(): RequestInterface return new Request('GET', str_replace(['{owner}', '{repo}', '{branch}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->branch, $this->perPage, $this->page], '/repos/{owner}/{repo}/rules/branches/{branch}' . '?per_page={per_page}&page={page}')); } - /** @return Observable */ + /** @return Observable */ public function createResponse(ResponseInterface $response): Observable { $code = $response->getStatusCode(); @@ -62,7 +62,7 @@ public function createResponse(ResponseInterface $response): Observable * Response **/ case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning { + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleFilePathRestriction|Schema\RepositoryRuleMaxFilePathLength|Schema\RepositoryRuleFileExtensionRestriction|Schema\RepositoryRuleMaxFileSize|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning { $error = new RuntimeException(); try { $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCreation::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); @@ -200,23 +200,59 @@ public function createResponse(ResponseInterface $response): Observable items_application_json_two_hundred_aaaao: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleWorkflows::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleFilePathRestriction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleWorkflows::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleFilePathRestriction::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaap; } items_application_json_two_hundred_aaaap: try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCodeScanning::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleMaxFilePathLength::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\RepositoryRuleCodeScanning::class, $body); + return $this->hydrator->hydrateObject(Schema\RepositoryRuleMaxFilePathLength::class, $body); } catch (Throwable $error) { goto items_application_json_two_hundred_aaaaq; } items_application_json_two_hundred_aaaaq: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleFileExtensionRestriction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryRuleFileExtensionRestriction::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaar; + } + + items_application_json_two_hundred_aaaar: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleMaxFileSize::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryRuleMaxFileSize::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaas; + } + + items_application_json_two_hundred_aaaas: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleWorkflows::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryRuleWorkflows::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaat; + } + + items_application_json_two_hundred_aaaat: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCodeScanning::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryRuleCodeScanning::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaau; + } + + items_application_json_two_hundred_aaaau: throw $error; }); } diff --git a/clients/GitHub/src/Internal/Operator/Issues/ListForOrg.php b/clients/GitHub/src/Internal/Operator/Issues/ListForOrg.php index 520072547d7..8c3ef7f8bea 100644 --- a/clients/GitHub/src/Internal/Operator/Issues/ListForOrg.php +++ b/clients/GitHub/src/Internal/Operator/Issues/ListForOrg.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListForOrg($this->responseSchemaValidator, $this->hydrator, $org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Issues/ListForOrgListing.php b/clients/GitHub/src/Internal/Operator/Issues/ListForOrgListing.php index 6a66921fb3c..7dd5f16b9d6 100644 --- a/clients/GitHub/src/Internal/Operator/Issues/ListForOrgListing.php +++ b/clients/GitHub/src/Internal/Operator/Issues/ListForOrgListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Issues/ListForRepo.php b/clients/GitHub/src/Internal/Operator/Issues/ListForRepo.php index de02538b6b8..7eefe7cc78f 100644 --- a/clients/GitHub/src/Internal/Operator/Issues/ListForRepo.php +++ b/clients/GitHub/src/Internal/Operator/Issues/ListForRepo.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|Schema\BasicError */ + /** @return Observable|Schema\BasicError */ public function call(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Issues/ListForRepoListing.php b/clients/GitHub/src/Internal/Operator/Issues/ListForRepoListing.php index e23c0e2f89f..ca3c7446c9c 100644 --- a/clients/GitHub/src/Internal/Operator/Issues/ListForRepoListing.php +++ b/clients/GitHub/src/Internal/Operator/Issues/ListForRepoListing.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|Schema\BasicError */ + /** @return Observable|Schema\BasicError */ public function call(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Orgs/CreateIssueType.php b/clients/GitHub/src/Internal/Operator/Orgs/CreateIssueType.php index 843afb4824f..af754a80a5a 100644 --- a/clients/GitHub/src/Internal/Operator/Orgs/CreateIssueType.php +++ b/clients/GitHub/src/Internal/Operator/Orgs/CreateIssueType.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, array $params): IssueType { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\CreateIssueType($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHub/src/Internal/Operator/Orgs/DeleteIssueType.php b/clients/GitHub/src/Internal/Operator/Orgs/DeleteIssueType.php index 78c9f72623f..51285e53d21 100644 --- a/clients/GitHub/src/Internal/Operator/Orgs/DeleteIssueType.php +++ b/clients/GitHub/src/Internal/Operator/Orgs/DeleteIssueType.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, int $issueTypeId): WithoutBody { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\DeleteIssueType($this->responseSchemaValidator, $this->hydrator, $org, $issueTypeId); diff --git a/clients/GitHub/src/Internal/Operator/Orgs/ListIssueTypes.php b/clients/GitHub/src/Internal/Operator/Orgs/ListIssueTypes.php index f31601f4c45..7d6aea37079 100644 --- a/clients/GitHub/src/Internal/Operator/Orgs/ListIssueTypes.php +++ b/clients/GitHub/src/Internal/Operator/Orgs/ListIssueTypes.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\ListIssueTypes($this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHub/src/Internal/Operator/Orgs/UpdateIssueType.php b/clients/GitHub/src/Internal/Operator/Orgs/UpdateIssueType.php index 5bb008fcec5..c3292b05725 100644 --- a/clients/GitHub/src/Internal/Operator/Orgs/UpdateIssueType.php +++ b/clients/GitHub/src/Internal/Operator/Orgs/UpdateIssueType.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, int $issueTypeId, array $params): IssueType { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\UpdateIssueType($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $issueTypeId); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php index 3f7ddaedbc6..1ee2602507c 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRules.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ + /** @return iterable */ public function call(string $owner, string $repo, string $branch, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetBranchRules($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRulesListing.php b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRulesListing.php index 60445099dae..309424e7cd5 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetBranchRulesListing.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetBranchRulesListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ + /** @return iterable */ public function call(string $owner, string $repo, string $branch, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetBranchRulesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Router/Delete/Five.php b/clients/GitHub/src/Internal/Router/Delete/Five.php index 012196d3f9f..bf72f6bbefc 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Five.php +++ b/clients/GitHub/src/Internal/Router/Delete/Five.php @@ -14,7 +14,6 @@ public function __construct(private Routers $routers) { } - /** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */ public function call(string $call, array $params, array $pathChunks): WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Delete/Orgs.php b/clients/GitHub/src/Internal/Router/Delete/Orgs.php index f2fe6bebaba..334407742ba 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Orgs.php +++ b/clients/GitHub/src/Internal/Router/Delete/Orgs.php @@ -83,6 +83,7 @@ public function cancelInvitation(array $params): WithoutBody return $operator->call($arguments['org'], $arguments['invitation_id']); } + /** @return */ public function deleteIssueType(array $params): WithoutBody { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Five.php b/clients/GitHub/src/Internal/Router/Get/Five.php index 84f327a919c..ce6e9d9bba2 100644 --- a/clients/GitHub/src/Internal/Router/Get/Five.php +++ b/clients/GitHub/src/Internal/Router/Get/Five.php @@ -52,7 +52,7 @@ public function __construct(private Routers $routers) { } - /** @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|iterable|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|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|Ok|ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|OrgHook|OrgMembership|Migration|OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|OrgPrivateRegistryConfiguration|RepositoryRuleset|\ApiClients\Client\GitHub\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok\Application\Json|EmptyObject { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/Four.php b/clients/GitHub/src/Internal/Router/Get/Four.php index 01b5a2d6b3a..253a235f00b 100644 --- a/clients/GitHub/src/Internal/Router/Get/Four.php +++ b/clients/GitHub/src/Internal/Router/Get/Four.php @@ -34,7 +34,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|WithoutBody|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|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|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 */ public function call(string $call, array $params, array $pathChunks): WebhookConfig|iterable|Installation|WithoutBody|GistSimple|GitignoreTemplate|MarketplacePurchase|Thread|Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|InteractionLimitResponse|One|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|Codespace|GpgKey|Key|Migration|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/Issues.php b/clients/GitHub/src/Internal/Router/Get/Issues.php index d7703946383..f63972f1532 100644 --- a/clients/GitHub/src/Internal/Router/Get/Issues.php +++ b/clients/GitHub/src/Internal/Router/Get/Issues.php @@ -164,7 +164,7 @@ public function listForAuthenticatedUser(array $params): iterable|WithoutBody return $operator->call($arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForOrg(array $params): iterable { $arguments = []; @@ -266,7 +266,7 @@ public function listAssignees(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable|Schema\BasicError */ + /** @return Observable|Schema\BasicError */ public function listForRepo(array $params): iterable|BasicError { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Orgs.php b/clients/GitHub/src/Internal/Router/Get/Orgs.php index e73fe71188f..34b1687d676 100644 --- a/clients/GitHub/src/Internal/Router/Get/Orgs.php +++ b/clients/GitHub/src/Internal/Router/Get/Orgs.php @@ -233,7 +233,7 @@ public function listPendingInvitations(array $params): iterable return $operator->call($arguments['org'], $arguments['per_page'], $arguments['page'], $arguments['role'], $arguments['invitation_source']); } - /** @return iterable */ + /** @return Observable */ public function listIssueTypes(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Repos.php b/clients/GitHub/src/Internal/Router/Get/Repos.php index 046c60709d1..30f35d94869 100644 --- a/clients/GitHub/src/Internal/Router/Get/Repos.php +++ b/clients/GitHub/src/Internal/Router/Get/Repos.php @@ -2743,7 +2743,7 @@ public function listReleaseAssets(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id'], $arguments['per_page'], $arguments['page']); } - /** @return Observable */ + /** @return iterable */ public function getBranchRules(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Seven.php b/clients/GitHub/src/Internal/Router/Get/Seven.php index 9586971df58..ff2088feda3 100644 --- a/clients/GitHub/src/Internal/Router/Get/Seven.php +++ b/clients/GitHub/src/Internal/Router/Get/Seven.php @@ -64,7 +64,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|Ok|Json|OidcCustomSub|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|WithoutBody|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|RulesetVersion|TeamDiscussion|TeamMembership|TeamProject|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PagesDeploymentStatus|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|RuleSuite|SecretScanningAlert|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Five.php b/clients/GitHub/src/Internal/Router/List/Five.php index 5ac79186514..8da240fa0c8 100644 --- a/clients/GitHub/src/Internal/Router/List/Five.php +++ b/clients/GitHub/src/Internal/Router/List/Five.php @@ -16,7 +16,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|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|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Four.php b/clients/GitHub/src/Internal/Router/List/Four.php index d5268bc55ef..45048521c93 100644 --- a/clients/GitHub/src/Internal/Router/List/Four.php +++ b/clients/GitHub/src/Internal/Router/List/Four.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|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|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/GitHub/src/Internal/Router/List/Issues.php b/clients/GitHub/src/Internal/Router/List/Issues.php index 1200e179ed0..0ca76c5ab9a 100644 --- a/clients/GitHub/src/Internal/Router/List/Issues.php +++ b/clients/GitHub/src/Internal/Router/List/Issues.php @@ -85,7 +85,7 @@ public function listForAuthenticatedUserListing(array $params): iterable|Without } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function listForOrgListing(array $params): iterable { $arguments = []; @@ -286,7 +286,7 @@ public function listAssigneesListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable|Schema\BasicError */ + /** @return Observable|Schema\BasicError */ public function listForRepoListing(array $params): iterable|BasicError { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/List/Repos.php b/clients/GitHub/src/Internal/Router/List/Repos.php index e576cfa9673..2ecc6ad7606 100644 --- a/clients/GitHub/src/Internal/Router/List/Repos.php +++ b/clients/GitHub/src/Internal/Router/List/Repos.php @@ -1297,7 +1297,7 @@ public function listReleaseAssetsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ public function getBranchRulesListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/List/Seven.php b/clients/GitHub/src/Internal/Router/List/Seven.php index a8309d40b42..4379ac5fe08 100644 --- a/clients/GitHub/src/Internal/Router/List/Seven.php +++ b/clients/GitHub/src/Internal/Router/List/Seven.php @@ -14,7 +14,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|iterable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Post/Four.php b/clients/GitHub/src/Internal/Router/Post/Four.php index daa675b5179..c4ad3f0d883 100644 --- a/clients/GitHub/src/Internal/Router/Post/Four.php +++ b/clients/GitHub/src/Internal/Router/Post/Four.php @@ -30,7 +30,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\IssueType */ public function call(string $call, array $params, array $pathChunks): Integration|Authorization|GistComment|WithoutBody|BaseGist|OrgHook|OrganizationInvitation|IssueType|Migration|Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|OrgPrivateRegistryConfigurationWithSelectedRepositories|Project|FullRepository|RepositoryRuleset|TeamFull|ProjectColumn|TeamDiscussion { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Post/Orgs.php b/clients/GitHub/src/Internal/Router/Post/Orgs.php index ddc5b9268fe..97d2549f990 100644 --- a/clients/GitHub/src/Internal/Router/Post/Orgs.php +++ b/clients/GitHub/src/Internal/Router/Post/Orgs.php @@ -53,6 +53,7 @@ public function createInvitation(array $params): OrganizationInvitation return $operator->call($arguments['org'], $params); } + /** @return */ public function createIssueType(array $params): IssueType { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Put/Five.php b/clients/GitHub/src/Internal/Router/Put/Five.php index bc4035be5c6..a8494975cbb 100644 --- a/clients/GitHub/src/Internal/Router/Put/Five.php +++ b/clients/GitHub/src/Internal/Router/Put/Five.php @@ -26,7 +26,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\IssueType */ public function call(string $call, array $params, array $pathChunks): WithoutBody|ThreadSubscription|IssueType|OrgMembership|Json|RepositoryRuleset|Import|InteractionLimitResponse|Accepted|RepositorySubscription|Topic|TeamMembership|EmptyObject { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Put/Orgs.php b/clients/GitHub/src/Internal/Router/Put/Orgs.php index d30ccafb114..9243a7f1330 100644 --- a/clients/GitHub/src/Internal/Router/Put/Orgs.php +++ b/clients/GitHub/src/Internal/Router/Put/Orgs.php @@ -44,6 +44,7 @@ public function blockUser(array $params): WithoutBody return $operator->call($arguments['org'], $arguments['username']); } + /** @return */ public function updateIssueType(array $params): IssueType { $arguments = []; diff --git a/clients/GitHub/src/Operation/Issues.php b/clients/GitHub/src/Operation/Issues.php index fa15b3dae4b..f8b43841b2d 100644 --- a/clients/GitHub/src/Operation/Issues.php +++ b/clients/GitHub/src/Operation/Issues.php @@ -32,13 +32,13 @@ public function listListing(string $labels, string $since, bool $collab, bool $o return $this->operators->issues👷ListListing()->call($labels, $since, $collab, $orgs, $owned, $pulls, $filter, $state, $sort, $direction, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function listForOrg(string $org, string $labels, string $type, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable { return $this->operators->issues👷ListForOrg()->call($org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function listForOrgListing(string $org, string $labels, string $type, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable { return $this->operators->issues👷ListForOrgListing()->call($org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); @@ -62,13 +62,13 @@ public function checkUserCanBeAssigned(string $owner, string $repo, string $assi return $this->operators->issues👷CheckUserCanBeAssigned()->call($owner, $repo, $assignee); } - /** @return iterable|Schema\BasicError */ + /** @return Observable|Schema\BasicError */ public function listForRepo(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError { return $this->operators->issues👷ListForRepo()->call($owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); } - /** @return iterable|Schema\BasicError */ + /** @return Observable|Schema\BasicError */ public function listForRepoListing(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError { return $this->operators->issues👷ListForRepoListing()->call($owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); diff --git a/clients/GitHub/src/Operation/Orgs.php b/clients/GitHub/src/Operation/Orgs.php index ddfd753bc02..ef47ffc8312 100644 --- a/clients/GitHub/src/Operation/Orgs.php +++ b/clients/GitHub/src/Operation/Orgs.php @@ -212,22 +212,25 @@ public function listInvitationTeamsListing(string $org, int $invitationId, int $ return $this->operators->orgs👷ListInvitationTeamsListing()->call($org, $invitationId, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function listIssueTypes(string $org): iterable { return $this->operators->orgs👷ListIssueTypes()->call($org); } + /** @return */ public function createIssueType(string $org, array $params): IssueType { return $this->operators->orgs👷CreateIssueType()->call($org, $params); } + /** @return */ public function updateIssueType(string $org, int $issueTypeId, array $params): IssueType { return $this->operators->orgs👷UpdateIssueType()->call($org, $issueTypeId, $params); } + /** @return */ public function deleteIssueType(string $org, int $issueTypeId): WithoutBody { return $this->operators->orgs👷DeleteIssueType()->call($org, $issueTypeId); diff --git a/clients/GitHub/src/Operation/Repos.php b/clients/GitHub/src/Operation/Repos.php index fa9dfe15226..9a15db4c7b4 100644 --- a/clients/GitHub/src/Operation/Repos.php +++ b/clients/GitHub/src/Operation/Repos.php @@ -1152,13 +1152,13 @@ public function uploadReleaseAsset(string $owner, string $repo, int $releaseId, return $this->operators->repos👷UploadReleaseAsset()->call($owner, $repo, $releaseId, $name, $label, $params); } - /** @return Observable */ + /** @return iterable */ public function getBranchRules(string $owner, string $repo, string $branch, int $perPage, int $page): iterable { return $this->operators->repos👷GetBranchRules()->call($owner, $repo, $branch, $perPage, $page); } - /** @return Observable */ + /** @return iterable */ public function getBranchRulesListing(string $owner, string $repo, string $branch, int $perPage, int $page): iterable { return $this->operators->repos👷GetBranchRulesListing()->call($owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 33c093b299c..521f24dc147 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -1140,27 +1140,27 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/issue-types') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'POST /orgs/{org}/issue-types') { - return $this->typeResolver->resolve('Schema\\IssueType'); + return $this->typeResolver->resolve(''); } if ($call === 'PUT /orgs/{org}/issue-types/{issue_type_id}') { - return $this->typeResolver->resolve('Schema\\IssueType'); + return $this->typeResolver->resolve(''); } if ($call === 'DELETE /orgs/{org}/issue-types/{issue_type_id}') { - return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /orgs/{org}/issues') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /orgs/{org}/issues') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /orgs/{org}/members') { @@ -3120,11 +3120,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/issues') { - return $this->typeResolver->resolve('iterable|Schema\\BasicError'); + return $this->typeResolver->resolve('Observable|Schema\\BasicError'); } if ($call === 'LIST /repos/{owner}/{repo}/issues') { - return $this->typeResolver->resolve('iterable|Schema\\BasicError'); + return $this->typeResolver->resolve('Observable|Schema\\BasicError'); } if ($call === 'POST /repos/{owner}/{repo}/issues') { @@ -3724,11 +3724,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/rules/branches/{branch}') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /repos/{owner}/{repo}/rules/branches/{branch}') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /repos/{owner}/{repo}/rulesets') { diff --git a/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php index a1de0836f25..554c0de97b1 100644 --- a/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php @@ -558,6 +558,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php index 1f63a8fe742..13690148502 100644 --- a/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php @@ -338,6 +338,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php index fb012926104..ee77c6b1917 100644 --- a/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php @@ -553,6 +553,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php index c5b098e2223..eecc7976676 100644 --- a/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php @@ -333,6 +333,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/RepositoryRule.php b/clients/GitHub/src/Schema/RepositoryRule.php index 14b9bed2d65..7d6e72df055 100644 --- a/clients/GitHub/src/Schema/RepositoryRule.php +++ b/clients/GitHub/src/Schema/RepositoryRule.php @@ -236,6 +236,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/RepositoryRuleDetailed.php b/clients/GitHub/src/Schema/RepositoryRuleDetailed.php index 5fa3c0f5912..dce414cd7bb 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleDetailed.php +++ b/clients/GitHub/src/Schema/RepositoryRuleDetailed.php @@ -420,6 +420,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." @@ -963,6 +968,232 @@ } ] }, + { + "allOf": [ + { + "title": "file_path_restriction", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "file_path_restriction" + ], + "type": "string" + }, + "parameters": { + "required": [ + "restricted_file_paths" + ], + "type": "object", + "properties": { + "restricted_file_paths": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The file paths that are restricted from being pushed to the commit graph." + } + } + } + }, + "description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph." + }, + { + "title": "repository ruleset data for rule", + "properties": { + "ruleset_source_type": { + "enum": [ + "Repository", + "Organization" + ], + "type": "string", + "description": "The type of source for the ruleset that includes this rule." + }, + "ruleset_source": { + "type": "string", + "description": "The name of the source of the ruleset that includes this rule." + }, + "ruleset_id": { + "type": "integer", + "description": "The ID of the ruleset that includes this rule." + } + }, + "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values." + } + ] + }, + { + "allOf": [ + { + "title": "max_file_path_length", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "max_file_path_length" + ], + "type": "string" + }, + "parameters": { + "required": [ + "max_file_path_length" + ], + "type": "object", + "properties": { + "max_file_path_length": { + "maximum": 256, + "minimum": 1, + "type": "integer", + "description": "The maximum amount of characters allowed in file paths" + } + } + } + }, + "description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph." + }, + { + "title": "repository ruleset data for rule", + "properties": { + "ruleset_source_type": { + "enum": [ + "Repository", + "Organization" + ], + "type": "string", + "description": "The type of source for the ruleset that includes this rule." + }, + "ruleset_source": { + "type": "string", + "description": "The name of the source of the ruleset that includes this rule." + }, + "ruleset_id": { + "type": "integer", + "description": "The ID of the ruleset that includes this rule." + } + }, + "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values." + } + ] + }, + { + "allOf": [ + { + "title": "file_extension_restriction", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "file_extension_restriction" + ], + "type": "string" + }, + "parameters": { + "required": [ + "restricted_file_extensions" + ], + "type": "object", + "properties": { + "restricted_file_extensions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The file extensions that are restricted from being pushed to the commit graph." + } + } + } + }, + "description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph." + }, + { + "title": "repository ruleset data for rule", + "properties": { + "ruleset_source_type": { + "enum": [ + "Repository", + "Organization" + ], + "type": "string", + "description": "The type of source for the ruleset that includes this rule." + }, + "ruleset_source": { + "type": "string", + "description": "The name of the source of the ruleset that includes this rule." + }, + "ruleset_id": { + "type": "integer", + "description": "The ID of the ruleset that includes this rule." + } + }, + "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values." + } + ] + }, + { + "allOf": [ + { + "title": "max_file_size", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "enum": [ + "max_file_size" + ], + "type": "string" + }, + "parameters": { + "required": [ + "max_file_size" + ], + "type": "object", + "properties": { + "max_file_size": { + "maximum": 100, + "minimum": 1, + "type": "integer", + "description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS)." + } + } + } + }, + "description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph." + }, + { + "title": "repository ruleset data for rule", + "properties": { + "ruleset_source_type": { + "enum": [ + "Repository", + "Organization" + ], + "type": "string", + "description": "The type of source for the ruleset that includes this rule." + }, + "ruleset_source": { + "type": "string", + "description": "The name of the source of the ruleset that includes this rule." + }, + "ruleset_id": { + "type": "integer", + "description": "The ID of the ruleset that includes this rule." + } + }, + "description": "User-defined metadata to store domain-specific information limited to 8 keys with scalar values." + } + ] + }, { "allOf": [ { diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Seventeen.php b/clients/GitHub/src/Schema/RepositoryRuleFileExtensionRestriction.php similarity index 89% rename from clients/GitHub/src/Schema/RepositoryRuleset/Rules/Seventeen.php rename to clients/GitHub/src/Schema/RepositoryRuleFileExtensionRestriction.php index 5fe7d31f12f..1ecdfe22113 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Seventeen.php +++ b/clients/GitHub/src/Schema/RepositoryRuleFileExtensionRestriction.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\RepositoryRuleset\Rules; +namespace ApiClients\Client\GitHub\Schema; use ApiClients\Client\GitHub\Schema; -final readonly class Seventeen +final readonly class RepositoryRuleFileExtensionRestriction { public const SCHEMA_JSON = '{ "title": "file_extension_restriction", @@ -51,7 +51,7 @@ } }'; - public function __construct(public string $type, public Schema\RepositoryRuleset\Rules\Seventeen\Parameters|null $parameters) + public function __construct(public string $type, public Schema\RepositoryRuleFileExtensionRestriction\Parameters|null $parameters) { } } diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Seventeen/Parameters.php b/clients/GitHub/src/Schema/RepositoryRuleFileExtensionRestriction/Parameters.php similarity index 92% rename from clients/GitHub/src/Schema/RepositoryRuleset/Rules/Seventeen/Parameters.php rename to clients/GitHub/src/Schema/RepositoryRuleFileExtensionRestriction/Parameters.php index 53a52aaddb6..c1e8b41a4e4 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Seventeen/Parameters.php +++ b/clients/GitHub/src/Schema/RepositoryRuleFileExtensionRestriction/Parameters.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\RepositoryRuleset\Rules\Seventeen; +namespace ApiClients\Client\GitHub\Schema\RepositoryRuleFileExtensionRestriction; use EventSauce\ObjectHydrator\MapFrom; diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fifteen.php b/clients/GitHub/src/Schema/RepositoryRuleFilePathRestriction.php similarity index 90% rename from clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fifteen.php rename to clients/GitHub/src/Schema/RepositoryRuleFilePathRestriction.php index a4f2095f9f6..f06df1815f2 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fifteen.php +++ b/clients/GitHub/src/Schema/RepositoryRuleFilePathRestriction.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\RepositoryRuleset\Rules; +namespace ApiClients\Client\GitHub\Schema; use ApiClients\Client\GitHub\Schema; -final readonly class Fifteen +final readonly class RepositoryRuleFilePathRestriction { public const SCHEMA_JSON = '{ "title": "file_path_restriction", @@ -51,7 +51,7 @@ } }'; - public function __construct(public string $type, public Schema\RepositoryRuleset\Rules\Fifteen\Parameters|null $parameters) + public function __construct(public string $type, public Schema\RepositoryRuleFilePathRestriction\Parameters|null $parameters) { } } diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fifteen/Parameters.php b/clients/GitHub/src/Schema/RepositoryRuleFilePathRestriction/Parameters.php similarity index 92% rename from clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fifteen/Parameters.php rename to clients/GitHub/src/Schema/RepositoryRuleFilePathRestriction/Parameters.php index b14f7fd23b6..01c939ce4fe 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Fifteen/Parameters.php +++ b/clients/GitHub/src/Schema/RepositoryRuleFilePathRestriction/Parameters.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\RepositoryRuleset\Rules\Fifteen; +namespace ApiClients\Client\GitHub\Schema\RepositoryRuleFilePathRestriction; use EventSauce\ObjectHydrator\MapFrom; diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen.php b/clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength.php similarity index 89% rename from clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen.php rename to clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength.php index f32b40b6e12..50227af8ca3 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen.php +++ b/clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\RepositoryRuleset\Rules; +namespace ApiClients\Client\GitHub\Schema; use ApiClients\Client\GitHub\Schema; -final readonly class Sixteen +final readonly class RepositoryRuleMaxFilePathLength { public const SCHEMA_JSON = '{ "title": "max_file_path_length", @@ -47,7 +47,7 @@ } }'; - public function __construct(public string $type, public Schema\RepositoryRuleset\Rules\Sixteen\Parameters|null $parameters) + public function __construct(public string $type, public Schema\RepositoryRuleMaxFilePathLength\Parameters|null $parameters) { } } diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen/Parameters.php b/clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength/Parameters.php similarity index 91% rename from clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen/Parameters.php rename to clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength/Parameters.php index 65e9777a70b..b2044bb3601 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Sixteen/Parameters.php +++ b/clients/GitHub/src/Schema/RepositoryRuleMaxFilePathLength/Parameters.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\RepositoryRuleset\Rules\Sixteen; +namespace ApiClients\Client\GitHub\Schema\RepositoryRuleMaxFilePathLength; use EventSauce\ObjectHydrator\MapFrom; diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Eighteen.php b/clients/GitHub/src/Schema/RepositoryRuleMaxFileSize.php similarity index 89% rename from clients/GitHub/src/Schema/RepositoryRuleset/Rules/Eighteen.php rename to clients/GitHub/src/Schema/RepositoryRuleMaxFileSize.php index da517c6a9a1..a9ed52bb900 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Eighteen.php +++ b/clients/GitHub/src/Schema/RepositoryRuleMaxFileSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\RepositoryRuleset\Rules; +namespace ApiClients\Client\GitHub\Schema; use ApiClients\Client\GitHub\Schema; -final readonly class Eighteen +final readonly class RepositoryRuleMaxFileSize { public const SCHEMA_JSON = '{ "title": "max_file_size", @@ -47,7 +47,7 @@ } }'; - public function __construct(public string $type, public Schema\RepositoryRuleset\Rules\Eighteen\Parameters|null $parameters) + public function __construct(public string $type, public Schema\RepositoryRuleMaxFileSize\Parameters|null $parameters) { } } diff --git a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Eighteen/Parameters.php b/clients/GitHub/src/Schema/RepositoryRuleMaxFileSize/Parameters.php similarity index 92% rename from clients/GitHub/src/Schema/RepositoryRuleset/Rules/Eighteen/Parameters.php rename to clients/GitHub/src/Schema/RepositoryRuleMaxFileSize/Parameters.php index 07fe9d511e1..87889e24a3c 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset/Rules/Eighteen/Parameters.php +++ b/clients/GitHub/src/Schema/RepositoryRuleMaxFileSize/Parameters.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\RepositoryRuleset\Rules\Eighteen; +namespace ApiClients\Client\GitHub\Schema\RepositoryRuleMaxFileSize; use EventSauce\ObjectHydrator\MapFrom; diff --git a/clients/GitHub/src/Schema/RepositoryRulePullRequest.php b/clients/GitHub/src/Schema/RepositoryRulePullRequest.php index 283f3f0cb23..8b4ae1f8a3e 100644 --- a/clients/GitHub/src/Schema/RepositoryRulePullRequest.php +++ b/clients/GitHub/src/Schema/RepositoryRulePullRequest.php @@ -34,6 +34,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/RepositoryRulePullRequest/Parameters.php b/clients/GitHub/src/Schema/RepositoryRulePullRequest/Parameters.php index 835699c40ec..733845954ac 100644 --- a/clients/GitHub/src/Schema/RepositoryRulePullRequest/Parameters.php +++ b/clients/GitHub/src/Schema/RepositoryRulePullRequest/Parameters.php @@ -21,6 +21,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/RepositoryRuleset.php b/clients/GitHub/src/Schema/RepositoryRuleset.php index cb5a6fae044..e690dfa20f9 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset.php +++ b/clients/GitHub/src/Schema/RepositoryRuleset.php @@ -649,6 +649,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php index 258299dcbfb..6c87af2b376 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetCreated.php @@ -2366,6 +2366,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php index 450a380ef12..f69cfcddac8 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetDeleted.php @@ -2366,6 +2366,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php index 3df9ca8363d..849efb7ac48 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited.php @@ -2366,6 +2366,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." @@ -3358,6 +3363,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." @@ -4177,6 +4187,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." @@ -4999,6 +5014,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes.php index f7b33cc5bc0..7d64f58cae4 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes.php @@ -402,6 +402,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." @@ -1221,6 +1226,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." @@ -2043,6 +2053,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php index f9982643127..7fb84231db9 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php @@ -241,6 +241,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." @@ -1060,6 +1065,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." @@ -1882,6 +1892,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." diff --git a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php index 02e29f575a1..e062a43f1d8 100644 --- a/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php +++ b/clients/GitHub/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php @@ -242,6 +242,11 @@ "allowed_merge_methods": { "type": "array", "items": { + "enum": [ + "merge", + "squash", + "rebase" + ], "type": "string" }, "description": "Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled." @@ -880,7 +885,7 @@ * rule: A repository rule. */ public function __construct(#[Rule] - public Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleset\Rules\Fifteen|Schema\RepositoryRuleset\Rules\Sixteen|Schema\RepositoryRuleset\Rules\Seventeen|Schema\RepositoryRuleset\Rules\Eighteen|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning|null $rule, public Schema\WebhookRepositoryRulesetEdited\Changes\Rules\Updated\Changes|null $changes,) + public Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleFilePathRestriction|Schema\RepositoryRuleMaxFilePathLength|Schema\RepositoryRuleFileExtensionRestriction|Schema\RepositoryRuleMaxFileSize|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning|null $rule, public Schema\WebhookRepositoryRulesetEdited\Changes\Rules\Updated\Changes|null $changes,) { } } diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index 966a5c52145..bd32e06ab67 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -291,12 +291,12 @@ function authHeader(): string assertType('', $client->call('DELETE /orgs/{org}/invitations/{invitation_id}')); assertType('Observable', $client->call('GET /orgs/{org}/invitations/{invitation_id}/teams')); assertType('Observable', $client->call('LIST /orgs/{org}/invitations/{invitation_id}/teams')); -assertType('iterable', $client->call('GET /orgs/{org}/issue-types')); -assertType('Schema\\IssueType', $client->call('POST /orgs/{org}/issue-types')); -assertType('Schema\\IssueType', $client->call('PUT /orgs/{org}/issue-types/{issue_type_id}')); -assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /orgs/{org}/issue-types/{issue_type_id}')); -assertType('iterable', $client->call('GET /orgs/{org}/issues')); -assertType('iterable', $client->call('LIST /orgs/{org}/issues')); +assertType('Observable', $client->call('GET /orgs/{org}/issue-types')); +assertType('', $client->call('POST /orgs/{org}/issue-types')); +assertType('', $client->call('PUT /orgs/{org}/issue-types/{issue_type_id}')); +assertType('', $client->call('DELETE /orgs/{org}/issue-types/{issue_type_id}')); +assertType('Observable', $client->call('GET /orgs/{org}/issues')); +assertType('Observable', $client->call('LIST /orgs/{org}/issues')); assertType('Observable', $client->call('GET /orgs/{org}/members')); assertType('Observable', $client->call('LIST /orgs/{org}/members')); assertType('', $client->call('GET /orgs/{org}/members/{username}')); @@ -786,8 +786,8 @@ function authHeader(): string assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/invitations')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/invitations/{invitation_id}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/invitations/{invitation_id}')); -assertType('iterable|Schema\\BasicError', $client->call('GET /repos/{owner}/{repo}/issues')); -assertType('iterable|Schema\\BasicError', $client->call('LIST /repos/{owner}/{repo}/issues')); +assertType('Observable|Schema\\BasicError', $client->call('GET /repos/{owner}/{repo}/issues')); +assertType('Observable|Schema\\BasicError', $client->call('LIST /repos/{owner}/{repo}/issues')); assertType('', $client->call('POST /repos/{owner}/{repo}/issues')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/issues/comments')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/issues/comments')); @@ -937,8 +937,8 @@ function authHeader(): string assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/releases/{release_id}/reactions')); assertType('', $client->call('POST /repos/{owner}/{repo}/releases/{release_id}/reactions')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}')); -assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rules/branches/{branch}')); -assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rules/branches/{branch}')); +assertType('iterable', $client->call('GET /repos/{owner}/{repo}/rules/branches/{branch}')); +assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/rules/branches/{branch}')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rulesets')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rulesets')); assertType('', $client->call('POST /repos/{owner}/{repo}/rulesets')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 485cc3a6735..3f9715b5804 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -11684,7 +11684,6 @@ paths: description: An issue type for a multi-week tracking of work is_enabled: true color: green - is_private: true responses: '200': description: Response @@ -11733,7 +11732,6 @@ paths: description: An issue type for a multi-week tracking of work is_enabled: true color: green - is_private: true responses: '200': description: Response @@ -59382,9 +59380,6 @@ webhooks: This event occurs when there is activity relating to a request for a fine-grained personal access token to access resources that belong to a resource owner that requires approval for token access. For more information, see "[Creating a personal access token](https://docs.github.com/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)." To subscribe to this event, a GitHub App must have at least read-level access for the "Personal access token requests" organization permission. - - > [!NOTE] - > Fine-grained PATs are in public preview. Related APIs, events, and functionality are subject to change. description: A fine-grained personal access token request was approved. operationId: personal-access-token-request/approved externalDocs: @@ -59441,15 +59436,13 @@ webhooks: subcategory: personal_access_token_request supported-webhook-types: - app + - organization personal-access-token-request-cancelled: post: summary: |- This event occurs when there is activity relating to a request for a fine-grained personal access token to access resources that belong to a resource owner that requires approval for token access. For more information, see "[Creating a personal access token](https://docs.github.com/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)." To subscribe to this event, a GitHub App must have at least read-level access for the "Personal access token requests" organization permission. - - > [!NOTE] - > Fine-grained PATs are in public preview. Related APIs, events, and functionality are subject to change. description: A fine-grained personal access token request was cancelled by the requester. operationId: personal-access-token-request/cancelled @@ -59507,15 +59500,13 @@ webhooks: subcategory: personal_access_token_request supported-webhook-types: - app + - organization personal-access-token-request-created: post: summary: |- This event occurs when there is activity relating to a request for a fine-grained personal access token to access resources that belong to a resource owner that requires approval for token access. For more information, see "[Creating a personal access token](https://docs.github.com/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)." To subscribe to this event, a GitHub App must have at least read-level access for the "Personal access token requests" organization permission. - - > [!NOTE] - > Fine-grained PATs are in public preview. Related APIs, events, and functionality are subject to change. description: A fine-grained personal access token request was created. operationId: personal-access-token-request/created externalDocs: @@ -59572,15 +59563,13 @@ webhooks: subcategory: personal_access_token_request supported-webhook-types: - app + - organization personal-access-token-request-denied: post: summary: |- This event occurs when there is activity relating to a request for a fine-grained personal access token to access resources that belong to a resource owner that requires approval for token access. For more information, see "[Creating a personal access token](https://docs.github.com/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)." To subscribe to this event, a GitHub App must have at least read-level access for the "Personal access token requests" organization permission. - - > [!NOTE] - > Fine-grained PATs are in public preview. Related APIs, events, and functionality are subject to change. description: A fine-grained personal access token request was denied. operationId: personal-access-token-request/denied externalDocs: @@ -59637,6 +59626,7 @@ webhooks: subcategory: personal_access_token_request supported-webhook-types: - app + - organization ping: post: summary: This event occurs when you create a new webhook. The ping event is @@ -79614,6 +79604,10 @@ components: `merge`, `squash`, and `rebase`. At least one option must be enabled. items: type: string + enum: + - merge + - squash + - rebase dismiss_stale_reviews_on_push: type: boolean description: New, reviewable commits pushed will dismiss previous pull @@ -79870,6 +79864,97 @@ components: required: - operator - pattern + repository-rule-file-path-restriction: + title: file_path_restriction + description: Prevent commits that include changes in specified file paths from + being pushed to the commit graph. + type: object + required: + - type + properties: + type: + type: string + enum: + - file_path_restriction + parameters: + type: object + properties: + restricted_file_paths: + type: array + description: The file paths that are restricted from being pushed to + the commit graph. + items: + type: string + required: + - restricted_file_paths + repository-rule-max-file-path-length: + title: max_file_path_length + description: Prevent commits that include file paths that exceed a specified + character limit from being pushed to the commit graph. + type: object + required: + - type + properties: + type: + type: string + enum: + - max_file_path_length + parameters: + type: object + properties: + max_file_path_length: + type: integer + description: The maximum amount of characters allowed in file paths + minimum: 1 + maximum: 256 + required: + - max_file_path_length + repository-rule-file-extension-restriction: + title: file_extension_restriction + description: Prevent commits that include files with specified file extensions + from being pushed to the commit graph. + type: object + required: + - type + properties: + type: + type: string + enum: + - file_extension_restriction + parameters: + type: object + properties: + restricted_file_extensions: + type: array + description: The file extensions that are restricted from being pushed + to the commit graph. + items: + type: string + required: + - restricted_file_extensions + repository-rule-max-file-size: + title: max_file_size + description: Prevent commits that exceed a specified file size limit from being + pushed to the commit graph. + type: object + required: + - type + properties: + type: + type: string + enum: + - max_file_size + parameters: + type: object + properties: + max_file_size: + type: integer + description: The maximum file size allowed in megabytes. This limit + does not apply to Git Large File Storage (Git LFS). + minimum: 1 + maximum: 100 + required: + - max_file_size repository-rule-params-restricted-commits: title: RestrictedCommits description: Restricted commit @@ -80007,93 +80092,10 @@ components: - "$ref": "#/components/schemas/repository-rule-committer-email-pattern" - "$ref": "#/components/schemas/repository-rule-branch-name-pattern" - "$ref": "#/components/schemas/repository-rule-tag-name-pattern" - - title: file_path_restriction - description: Prevent commits that include changes in specified file paths - from being pushed to the commit graph. - type: object - required: - - type - properties: - type: - type: string - enum: - - file_path_restriction - parameters: - type: object - properties: - restricted_file_paths: - type: array - description: The file paths that are restricted from being pushed - to the commit graph. - items: - type: string - required: - - restricted_file_paths - - title: max_file_path_length - description: Prevent commits that include file paths that exceed a specified - character limit from being pushed to the commit graph. - type: object - required: - - type - properties: - type: - type: string - enum: - - max_file_path_length - parameters: - type: object - properties: - max_file_path_length: - type: integer - description: The maximum amount of characters allowed in file paths - minimum: 1 - maximum: 256 - required: - - max_file_path_length - - title: file_extension_restriction - description: Prevent commits that include files with specified file extensions - from being pushed to the commit graph. - type: object - required: - - type - properties: - type: - type: string - enum: - - file_extension_restriction - parameters: - type: object - properties: - restricted_file_extensions: - type: array - description: The file extensions that are restricted from being pushed - to the commit graph. - items: - type: string - required: - - restricted_file_extensions - - title: max_file_size - description: Prevent commits that exceed a specified file size limit from - being pushed to the commit graph. - type: object - required: - - type - properties: - type: - type: string - enum: - - max_file_size - parameters: - type: object - properties: - max_file_size: - type: integer - description: The maximum file size allowed in megabytes. This limit - does not apply to Git Large File Storage (Git LFS). - minimum: 1 - maximum: 100 - required: - - max_file_size + - "$ref": "#/components/schemas/repository-rule-file-path-restriction" + - "$ref": "#/components/schemas/repository-rule-max-file-path-length" + - "$ref": "#/components/schemas/repository-rule-file-extension-restriction" + - "$ref": "#/components/schemas/repository-rule-max-file-size" - "$ref": "#/components/schemas/repository-rule-workflows" - "$ref": "#/components/schemas/repository-rule-code-scanning" repository-ruleset: @@ -92358,6 +92360,18 @@ components: - allOf: - "$ref": "#/components/schemas/repository-rule-tag-name-pattern" - "$ref": "#/components/schemas/repository-rule-ruleset-info" + - allOf: + - "$ref": "#/components/schemas/repository-rule-file-path-restriction" + - "$ref": "#/components/schemas/repository-rule-ruleset-info" + - allOf: + - "$ref": "#/components/schemas/repository-rule-max-file-path-length" + - "$ref": "#/components/schemas/repository-rule-ruleset-info" + - allOf: + - "$ref": "#/components/schemas/repository-rule-file-extension-restriction" + - "$ref": "#/components/schemas/repository-rule-ruleset-info" + - allOf: + - "$ref": "#/components/schemas/repository-rule-max-file-size" + - "$ref": "#/components/schemas/repository-rule-ruleset-info" - allOf: - "$ref": "#/components/schemas/repository-rule-workflows" - "$ref": "#/components/schemas/repository-rule-ruleset-info"