diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index c8e1d2d79ac..a43d245cf38 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "18d1649ae731235428cf7dff63fe488a", + "specHash": "21f5b960fb05aea66521f2bc8c61be9b", "generatedFiles": { "files": [ { @@ -676,7 +676,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRulePullRequest.php", - "hash": "34e350e64b9515f5a984028f0dd5a47d" + "hash": "de8126e01f096bed112f89989123400f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsStatusCheckConfiguration.php", @@ -712,11 +712,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRule.php", - "hash": "2a63a9b30ea57cfbb23374d820b833bc" + "hash": "62104552b6aafcaecbb3d1b039e7cc3d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php", - "hash": "ab9fd31be70356d583cd537f8e2b4218" + "hash": "9ea30ededbb66e280d56a01367579bed" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GroupMapping.php", @@ -2924,7 +2924,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRulePullRequest\/Parameters.php", - "hash": "2afe9ec1ebc07238046f82dd3da3bec1" + "hash": "8ad823160875efc22b722bd1842722db" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleRequiredStatusChecks\/Parameters.php", @@ -4912,11 +4912,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "1d123d7e696bfe1a82a152ddcacfb5ee" + "hash": "8413636328ad3a47e6f2cb149343672e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "39779b6bddbfb3360492fe96b33014ba" + "hash": "57a57ad0d46527b71e4027f9c64425ca" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php", @@ -5632,11 +5632,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "71ca3617357dd4f331ae9c62aa9c0a4b" + "hash": "750928fdc46a6d6f41b07c9de6f36419" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "29c63d4e9470321f3421922673b6a9f8" + "hash": "f99ae519726a131f6147773315f823f4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php", @@ -5920,7 +5920,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Issues.php", - "hash": "3270f7fa473fa6752de291306837c028" + "hash": "5343e16cfab518fa4085bf089e51f3ac" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Licenses.php", @@ -5932,7 +5932,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "cc6f5b9de1eb49eeac94652649efe5f5" + "hash": "83c985ce37babc36c1314931d35ae1d9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Oidc.php", @@ -5964,7 +5964,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "c619cc54ecb935adcec39c4e703edf2b" + "hash": "ff893b0967386b0c134b3817d8284fd0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php", @@ -12032,7 +12032,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleDetailed.php", - "hash": "dd1f731b020578940cd5cbc1b5872a95" + "hash": "f3b75ce64373e98f7558e54e7a08de03" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotOrganizationDetails.php", @@ -12148,15 +12148,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php", - "hash": "5754c9e54350dd1693914cc9228050e1" + "hash": "8aeaa8cf1d3d33a4fa3077bbef3d974d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php", - "hash": "03d5bf25bf270af16a020c34e1175cb8" + "hash": "c6bb0d230558864b84a881a70cddea83" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php", - "hash": "f204e7d406ae41a1cfbf1b98d9459004" + "hash": "cf3bc6182d3e7a02962e10e3ea0de866" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/SecurityAdvisories\/CreateRepositoryAdvisoryCveRequest\/Response\/ApplicationJson\/Accepted.php", @@ -12388,7 +12388,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes.php", - "hash": "d891e66f760e8ee66ce82fcf790adb75" + "hash": "92a5f22ff07fbeebaa5c382f4f5cce93" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Conditions.php", @@ -12416,11 +12416,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules.php", - "hash": "681f3a933f94f8c4c3cc270dbb842b57" + "hash": "63d0787e5feb052b5b08d97377a9b969" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated.php", - "hash": "a2b975fe314944ac1044e3c641462f18" + "hash": "f162a31a7e53cf4bf16a646bdfab25bd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Changes.php", @@ -15704,7 +15704,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForOrg.php", - "hash": "eca2b81f40c9e235e16e47c28daf0df1" + "hash": "e4b377d7708d6a94845f85ef79a23b61" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForOrgTest.php", @@ -15716,7 +15716,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForOrgListing.php", - "hash": "e69f9b0b563a4b298cf40f65c59a3bda" + "hash": "cec5d3f3589b98a1e73b8c5db5c71735" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForOrgListingTest.php", @@ -20712,7 +20712,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForRepo.php", - "hash": "ff7dd241cb4d93662d37a3082bd8654b" + "hash": "cc50aba0bc414bd295100132ba6fc56d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForRepoTest.php", @@ -20724,7 +20724,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForRepoListing.php", - "hash": "8ecf8c422e321dfb446f677e06f9cce8" + "hash": "d50b97467b4579ff80a743255fc6658d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForRepoListingTest.php", @@ -22380,11 +22380,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetBranchRules.php", - "hash": "f739f26c2346d83f15491bc47ddfd4cc" + "hash": "91e7fe5ae51d44345bc0f2cfe9715072" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRules.php", - "hash": "b3f9a3392d3bacb0fb2233579a46552d" + "hash": "ef5bc7d4d37aeaba0a5137e773690da3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesTest.php", @@ -22392,11 +22392,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetBranchRulesListing.php", - "hash": "de9df07b181634938af28a73d96ec35f" + "hash": "7fe76536a54dde2612af12742a16afac" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRulesListing.php", - "hash": "4c6a8d6987e03b259607152e2729331a" + "hash": "ee667503d5d0fde56ac556ea6d28ded5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesListingTest.php", @@ -25896,7 +25896,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Rule.php", - "hash": "4d1624b8b3d8d408b25ad8ca094c580e" + "hash": "e882869f81aa99c995aa2bb71fd56a62" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson\/Conditions.php", @@ -25948,7 +25948,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Issues.php", - "hash": "dc41cf9029efa879e1016a7d0bbdf287" + "hash": "4d9cb14c2951b7c3ade8f3215aa3d7ee" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Licenses.php", @@ -25956,7 +25956,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Orgs.php", - "hash": "a1cdafae596ec967f1c710844b8273ad" + "hash": "ad6a1c034696697d763857b87d030d03" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/RateLimit.php", @@ -25964,7 +25964,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php", - "hash": "0074039fc2c7137d1bf85df68646e9ec" + "hash": "8a497fed9c9378eaa8a22cddd8a81e54" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php", @@ -26072,7 +26072,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Orgs.php", - "hash": "967a2681f9e969d31637f624a78acf79" + "hash": "afaecce12724b3b951e0effaf805edb0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Migrations.php", @@ -26260,7 +26260,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Issues.php", - "hash": "b614c51ae69605265caf3331d27bd257" + "hash": "b0f86e479f0aa24f90ead16107160d91" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Migrations.php", @@ -26276,7 +26276,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "4764501e0be997a54b451d1711dedc71" + "hash": "dd38475fb043b92a08b7c8655e3f43dd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -26360,7 +26360,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Orgs.php", - "hash": "e699a98fcc7af6a18c815f698b436927" + "hash": "5dc3e12e6fc45237cb404612e1e1522f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Teams.php", @@ -26432,7 +26432,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Orgs.php", - "hash": "45d19663972b683ec40c2a247f060156" + "hash": "38244957ceb8a6bed5985266a23bcc5c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Codespaces.php", @@ -26512,11 +26512,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "531295d52f36356a7dea64d86080b61f" + "hash": "c8b455dea95423d6eb48f16118a2623d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "d234bd5be35dfd132687eac0c3a19879" + "hash": "f328c04c40d6e52bb27564ad7e5fe4dd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", @@ -26524,7 +26524,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "08f0d9b3f5354e4d65d7e18a532c61ab" + "hash": "7ca5e3dc23c17e9bd77c8f03e4f76449" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -26540,7 +26540,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Four.php", - "hash": "70214c1aa503db75d40935c5b56b238d" + "hash": "338390c17eafa54f3a19c58afecda4a5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php", @@ -26612,11 +26612,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php", - "hash": "bda15b91cb864bf037f82fc1b5404b9b" + "hash": "603ef2017db782aa7bb02ff55436588f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "ec0afc9b356751e04cec82954fa5f635" + "hash": "cffa6649a4dfdaae443d62e1167029b3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Two.php", @@ -26628,7 +26628,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "249a14efbd3d3016346b3d66f8c9e605" + "hash": "ca29533720cb41b2ac49b12f234d57bd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -26648,7 +26648,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Five.php", - "hash": "5bc6d21952f3b14a6d89b282bec8f840" + "hash": "57ba2b8d6195a28bb3c837074457c249" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Seven.php", @@ -26676,7 +26676,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Five.php", - "hash": "4b03ac4f65264c0b97440477236edeec" + "hash": "4a734ed246a6b204afdfc6c5ee69d416" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Seven.php", @@ -29692,11 +29692,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "6cd15035b505ded8f37dc8331ca30018" + "hash": "54ffc6171119f212af245349cc113765" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "d0fba86b8df6d4330bd56aee3f3c7a7d" + "hash": "49266b042c494de68113e1d153e06bcb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -31166,30 +31166,6 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhooksTeam1.php", "hash": "47224495355efc4ceaed8a6dc331662f" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Fifteen.php", - "hash": "193be77dacf5ab5836c17ad9446dc1c0" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Fifteen\/Parameters.php", - "hash": "e8f9c0aaf6c0b8367cfa92cb4ea696a4" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Sixteen.php", - "hash": "ee417dfdff2a48164de8980c9e159925" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Sixteen\/Parameters.php", - "hash": "19e1a8125d7967c7ee38a4bfbcd6ec42" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Seventeen.php", - "hash": "d43076abe21d50dfdb3a8523eb97c189" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Seventeen\/Parameters.php", - "hash": "6742ada386ceff133f19d23ee6dac60a" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhooksComment\/Reactions.php", "hash": "191d9d8f0c942e1d3afe20da49a850cb" @@ -32266,14 +32242,6 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMergeQueue\/Parameters.php", "hash": "45e5f30f979683e6bf25a1544adcc9a1" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Eighteen.php", - "hash": "f2abeb403444f0a88d6dfad35be93230" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Rules\/Eighteen\/Parameters.php", - "hash": "179656b70ea56ffd43f1a54f057ce511" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTeam.php", "hash": "1515c9ea5d91b4b9f6cc19452828bc92" @@ -33584,7 +33552,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateEnterpriseRuleset\/Request\/ApplicationJson.php", - "hash": "c0049d3aabab9d60ea35e0fc5a63522a" + "hash": "2685b3f46630cdbfae234f822099694f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/Repos\/UpdateEnterpriseRuleset\/Request\/ApplicationJson\/Conditions.php", @@ -33592,7 +33560,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateEnterpriseRuleset\/Request\/ApplicationJson.php", - "hash": "239478595e0a7d48a1cc1d9a7dbee66c" + "hash": "d0e4dd252a9cb11611b53452438715c2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9EC65F6E\/Tiet54735A02\/Tiet6044DE21\/Tiet16F5868C.php", @@ -35232,7 +35200,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListIssueTypes.php", - "hash": "1f238879f52bc59cba8460b95f707f6c" + "hash": "fd13075356a31a304b362717dbf912a5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListIssueTypesTest.php", @@ -35244,7 +35212,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/CreateIssueType.php", - "hash": "28c0dfbae03429f1409a0f58f91eb030" + "hash": "3d3693b79183a2e367d277e66ee371f6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/CreateIssueTypeTest.php", @@ -35256,7 +35224,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/UpdateIssueType.php", - "hash": "928901ba842376feb311e692e18f9701" + "hash": "83aacff0bd787121dd59a101c817faa0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/UpdateIssueTypeTest.php", @@ -35268,7 +35236,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/DeleteIssueType.php", - "hash": "f181aeb70ae07bfa68cf112f064eccb1" + "hash": "f670fd644dd1debd2a6468303d9b2259" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/DeleteIssueTypeTest.php", @@ -35305,6 +35273,38 @@ { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/IssueTypes\/IssueTypeId.php", "hash": "ff25c7a1809d2639f9a89df7c17374c1" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleFilePathRestriction.php", + "hash": "91997f5ab605cddb7d9205184c753c53" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMaxFilePathLength.php", + "hash": "1b3c4069a29799b18f974bc1bc23082e" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleFileExtensionRestriction.php", + "hash": "e82b7421703acf6399c6a2e81f6aec5b" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMaxFileSize.php", + "hash": "9cc662d5474fed25d7d841993af70cb0" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleFilePathRestriction\/Parameters.php", + "hash": "d305f9d8c46438f0c9be7e9148eeec6d" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMaxFilePathLength\/Parameters.php", + "hash": "220c93f38fc5586be75f193d8113779d" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleFileExtensionRestriction\/Parameters.php", + "hash": "88b459977362c5923a4c31c2fe1fb1ac" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMaxFileSize\/Parameters.php", + "hash": "5aa726445f5e6ffb542a8c9b38a242b1" } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php b/clients/GitHubEnterpriseCloud/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php index 4d05c024589..b4b1f179f2c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetBranchRules.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetBranchRules.php index 58dcbc20ef8..4ef4be2e25f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetBranchRules.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetBranchRulesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetBranchRulesListing.php index 4a0b218f870..98f34acea9b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetBranchRulesListing.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListForOrg.php index 8bba8fd6ddc..7809885f90b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListForOrg.php +++ b/clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Issues\ListForOrg($this->responseSchemaValidator, $this->hydrator, $org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListForOrgListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListForOrgListing.php index 4bf03323a1f..e30325b1e3f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListForOrgListing.php +++ b/clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Issues\ListForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListForRepo.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListForRepo.php index 2f42c4ad3bd..e253dfbd094 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListForRepo.php +++ b/clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\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/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListForRepoListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListForRepoListing.php index 704d73af4d1..5c026fecadb 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListForRepoListing.php +++ b/clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\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/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/CreateIssueType.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/CreateIssueType.php index 7adaf439ab4..b814109daf9 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/CreateIssueType.php +++ b/clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Orgs\CreateIssueType($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/DeleteIssueType.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/DeleteIssueType.php index cfa134a10ff..c9b87cc39c9 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/DeleteIssueType.php +++ b/clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Orgs\DeleteIssueType($this->responseSchemaValidator, $this->hydrator, $org, $issueTypeId); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/ListIssueTypes.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/ListIssueTypes.php index 40cb79ad6d5..520daa95182 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/ListIssueTypes.php +++ b/clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Orgs\ListIssueTypes($this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/UpdateIssueType.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/UpdateIssueType.php index 7829aee6932..466b913a14a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/UpdateIssueType.php +++ b/clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Orgs\UpdateIssueType($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $issueTypeId); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRules.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRules.php index 9734de50999..c85c951c3c6 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRules.php +++ b/clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Repos\GetBranchRules($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRulesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRulesListing.php index 6512c1b5743..fc297b07e21 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetBranchRulesListing.php +++ b/clients/GitHubEnterpriseCloud/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\GitHubEnterpriseCloud\Internal\Operation\Repos\GetBranchRulesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Five.php index b13b459b1e5..0f0e193f159 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Five.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Internal/Router/Delete/Orgs.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Orgs.php index 4b4705df5fd..4c7e6d2bb9b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Orgs.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Orgs.php @@ -146,6 +146,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/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php index 11844cd4850..7b9584ff7b0 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php @@ -59,7 +59,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Schema\BasicError|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|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|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 */ public function call(string $call, array $params, array $pathChunks): HookDelivery|Ok|ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|AuditLogStreamKey|iterable|WithoutBody|NetworkConfiguration|NetworkSettings|RepositoryRuleset|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|Json|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrganizationRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok\Application\Json|GroupMapping|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok\Application\Json|EmptyObject { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Four.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Four.php index 9ea87c1f644..b8dbf9e98d2 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Four.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Four.php @@ -38,7 +38,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|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|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): WebhookConfig|iterable|Installation|AnnouncementBanner|EnterpriseSecurityAnalysisSettings|string|Ok|WithoutBody|GistSimple|GitignoreTemplate|MarketplacePurchase|Thread|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|Json|ExternalGroups|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|InteractionLimitResponse|One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|Codespace|GpgKey|Key|Migration|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Issues.php index b3ddc3c7977..2e960e3b72d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Issues.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Internal/Router/Get/Orgs.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Orgs.php index d179d575650..93b89845ff3 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Orgs.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Orgs.php @@ -364,7 +364,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/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php index 84920c4cfc3..a6611c6e211 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php @@ -2849,7 +2849,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/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php index c5f53a3fe4b..735616a14f9 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php @@ -70,7 +70,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): Ok|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|iterable|RulesetVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|GroupMapping|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|PushRuleBypassRequest|SecretScanningBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\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|GroupResponse|UserResponse|ScimUser|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php index 378bde0eab7..153516eac9c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php @@ -16,7 +16,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|WithoutBody|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|Observable|Observable|Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Four.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Four.php index af2aa3b6e5b..a3a50dea675 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Four.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Four.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|WithoutBody|Observable|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|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 */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Issues.php index 5111aea20cc..859159b23b8 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Issues.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php index eea2c10473d..2f221d113a9 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php @@ -1360,7 +1360,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/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php index 40aabee0a44..354ff370066 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Internal/Router/Post/Four.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Four.php index bd39da4b5ef..2b6b71db472 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Four.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Four.php @@ -33,7 +33,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\IssueType */ public function call(string $call, array $params, array $pathChunks): Integration|Authorization|NetworkConfiguration|RepositoryRuleset|GistComment|WithoutBody|BaseGist|OrganizationCustomRepositoryRole|OrgHook|OrganizationInvitation|IssueType|Migration|OrganizationRole|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|OrgPrivateRegistryConfigurationWithSelectedRepositories|Project|FullRepository|TeamFull|ProjectColumn|TeamDiscussion { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Orgs.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Orgs.php index 5e77d7dbd5b..3843e3b1761 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Orgs.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Orgs.php @@ -85,6 +85,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/GitHubEnterpriseCloud/src/Internal/Router/Put/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Five.php index 3d6b89f9558..58249b0e878 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Five.php +++ b/clients/GitHubEnterpriseCloud/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|RepositoryRuleset|ThreadSubscription|IssueType|OrgMembership|Json|Import|InteractionLimitResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json|Accepted|RepositorySubscription|Topic|TeamMembership|EmptyObject { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Orgs.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Orgs.php index 47ee2e5c41b..c768dd7d2de 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Orgs.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Operation/Issues.php b/clients/GitHubEnterpriseCloud/src/Operation/Issues.php index 11dce7802c7..830f43b4dbb 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Issues.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Operation/Orgs.php b/clients/GitHubEnterpriseCloud/src/Operation/Orgs.php index 7ede1c315ab..048b4622483 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Orgs.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Orgs.php @@ -315,22 +315,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/GitHubEnterpriseCloud/src/Operation/Repos.php b/clients/GitHubEnterpriseCloud/src/Operation/Repos.php index 421885d1c5b..d6323ab615f 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Repos.php @@ -1207,13 +1207,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/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index 146125dfec4..579763ae9ff 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -1652,27 +1652,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') { @@ -3712,11 +3712,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') { @@ -4324,11 +4324,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/GitHubEnterpriseCloud/src/Schema/Repos/CreateEnterpriseRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateEnterpriseRuleset/Request/ApplicationJson.php index 911c480c850..fb54f671104 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateEnterpriseRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateEnterpriseRuleset/Request/ApplicationJson.php @@ -788,6 +788,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/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php index f4a48dc04af..500421a581c 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php @@ -559,6 +559,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/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php index 80120eeaa65..b0e6225e8b6 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php @@ -339,6 +339,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/GitHubEnterpriseCloud/src/Schema/Repos/UpdateEnterpriseRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateEnterpriseRuleset/Request/ApplicationJson.php index d7c64811532..3a2415f958e 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateEnterpriseRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateEnterpriseRuleset/Request/ApplicationJson.php @@ -783,6 +783,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/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php index 9d5d243c95f..0d00ccb9cf9 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php @@ -554,6 +554,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/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php index a13b0f17c25..5feeac9159c 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php @@ -334,6 +334,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/GitHubEnterpriseCloud/src/Schema/RepositoryRule.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRule.php index 8e5977b3ead..1dac9e71844 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRule.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/RepositoryRuleDetailed.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleDetailed.php index d8915b14f2e..0a7fe769455 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleDetailed.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Seventeen.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleFileExtensionRestriction.php similarity index 89% rename from clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Seventeen.php rename to clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleFileExtensionRestriction.php index 80b8bc54e1d..33926ee960e 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Seventeen.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleFileExtensionRestriction.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Rules; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema; use ApiClients\Client\GitHubEnterpriseCloud\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/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Seventeen/Parameters.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleFileExtensionRestriction/Parameters.php similarity index 96% rename from clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Seventeen/Parameters.php rename to clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleFileExtensionRestriction/Parameters.php index 4c1feaaaac0..8d554f3430d 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Seventeen/Parameters.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleFileExtensionRestriction/Parameters.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Rules\Seventeen; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleFileExtensionRestriction; use EventSauce\ObjectHydrator\MapFrom; diff --git a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Fifteen.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleFilePathRestriction.php similarity index 89% rename from clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Fifteen.php rename to clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleFilePathRestriction.php index 9c7c3bf9dd9..e7ad55e2369 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Fifteen.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleFilePathRestriction.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Rules; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema; use ApiClients\Client\GitHubEnterpriseCloud\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/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Fifteen/Parameters.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleFilePathRestriction/Parameters.php similarity index 97% rename from clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Fifteen/Parameters.php rename to clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleFilePathRestriction/Parameters.php index 2495417f9ed..b77193fe0f3 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Fifteen/Parameters.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleFilePathRestriction/Parameters.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Rules\Fifteen; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleFilePathRestriction; use EventSauce\ObjectHydrator\MapFrom; diff --git a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Sixteen.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleMaxFilePathLength.php similarity index 89% rename from clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Sixteen.php rename to clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleMaxFilePathLength.php index 812a6a1dbd8..f985b99ee19 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Sixteen.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleMaxFilePathLength.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Rules; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema; use ApiClients\Client\GitHubEnterpriseCloud\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/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Sixteen/Parameters.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleMaxFilePathLength/Parameters.php similarity index 97% rename from clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Sixteen/Parameters.php rename to clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleMaxFilePathLength/Parameters.php index 47afa78fa56..7439c567563 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Sixteen/Parameters.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleMaxFilePathLength/Parameters.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Rules\Sixteen; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleMaxFilePathLength; use EventSauce\ObjectHydrator\MapFrom; diff --git a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Eighteen.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleMaxFileSize.php similarity index 88% rename from clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Eighteen.php rename to clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleMaxFileSize.php index 6a3cb8fc493..8701908db76 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Eighteen.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleMaxFileSize.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Rules; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema; use ApiClients\Client\GitHubEnterpriseCloud\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/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Eighteen/Parameters.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleMaxFileSize/Parameters.php similarity index 97% rename from clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Eighteen/Parameters.php rename to clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleMaxFileSize/Parameters.php index 16695ac42f1..61691502715 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset/Rules/Eighteen/Parameters.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleMaxFileSize/Parameters.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Rules\Eighteen; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleMaxFileSize; use EventSauce\ObjectHydrator\MapFrom; diff --git a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulePullRequest.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulePullRequest.php index b6b7e710428..33b36b3b167 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulePullRequest.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/RepositoryRulePullRequest/Parameters.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulePullRequest/Parameters.php index 6d509c6c7cd..61f04379848 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulePullRequest/Parameters.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php index e183071b2e5..b7c1a1632ae 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php @@ -650,6 +650,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/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetCreated.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetCreated.php index 8860b4216d0..75dd748b020 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetCreated.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetCreated.php @@ -2367,6 +2367,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/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetDeleted.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetDeleted.php index 6072b2a2fd8..a4a11561f02 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetDeleted.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetDeleted.php @@ -2367,6 +2367,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/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited.php index f0e06e0d2b7..ccd7274d07c 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited.php @@ -2367,6 +2367,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." @@ -3359,6 +3364,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." @@ -4178,6 +4188,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." @@ -5000,6 +5015,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/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited/Changes.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited/Changes.php index 84aa3fda462..6af2336ff44 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited/Changes.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php index 5774252525a..cb25adfb08c 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php index 5dd1e6a9f30..55ba54655e5 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated.php +++ b/clients/GitHubEnterpriseCloud/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/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index 18f2f88e092..432a656dc20 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -419,12 +419,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}')); @@ -934,8 +934,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')); @@ -1087,8 +1087,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/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 8a28f870554..5c0658b5ef8 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -16706,7 +16706,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 @@ -16755,7 +16754,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 @@ -67819,9 +67817,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/enterprise-cloud@latest//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: @@ -67878,15 +67873,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/enterprise-cloud@latest//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 @@ -67944,15 +67937,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/enterprise-cloud@latest//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: @@ -68009,15 +68000,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/enterprise-cloud@latest//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: @@ -68074,6 +68063,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 @@ -83705,6 +83695,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 @@ -83961,6 +83955,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 @@ -84098,93 +84183,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-conditions-repository-id-target: @@ -102644,6 +102646,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"