diff --git a/clients/GitHub/README.md b/clients/GitHub/README.md index 7fb650c0f87..70cc8484575 100644 --- a/clients/GitHub/README.md +++ b/clients/GitHub/README.md @@ -12995,6 +12995,7 @@ $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts', [ 'tool_name' => 'generated', 'tool_guid' => , 'ref' => 'generated', + 'pr' => 2, 'state' => 'generated', 'severity' => 'generated', 'page' => 1, @@ -13011,6 +13012,7 @@ $client->operations()->codeScanning()->listAlertsForRepo( owner: 'generat tool_name: 'generated', tool_guid: , ref: 'generated', + pr: 2, state: 'generated', severity: 'generated', page: 1, @@ -13035,6 +13037,7 @@ $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts', [ 'tool_name' => 'generated', 'tool_guid' => , 'ref' => 'generated', + 'pr' => 2, 'state' => 'generated', 'severity' => 'generated', 'page' => 1, @@ -13051,6 +13054,7 @@ $client->operations()->codeScanning()->listAlertsForRepoListing( owner: ' tool_name: 'generated', tool_guid: , ref: 'generated', + pr: 2, state: 'generated', severity: 'generated', page: 1, @@ -13122,6 +13126,7 @@ $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/ins 'repo' => 'generated', 'alert_number' => 12, 'ref' => 'generated', + 'pr' => 2, 'page' => 1, 'per_page' => 8, ]); @@ -13133,6 +13138,7 @@ $client->operations()->codeScanning()->listAlertInstances( owner: 'genera repo: 'generated', alert_number: 12, ref: 'generated', + pr: 2, page: 1, per_page: 8, ); @@ -13152,6 +13158,7 @@ $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/in 'repo' => 'generated', 'alert_number' => 12, 'ref' => 'generated', + 'pr' => 2, 'page' => 1, 'per_page' => 8, ]); @@ -13163,6 +13170,7 @@ $client->operations()->codeScanning()->listAlertInstancesListing( owner: repo: 'generated', alert_number: 12, ref: 'generated', + pr: 2, page: 1, per_page: 8, ); @@ -13182,6 +13190,7 @@ $client->call('GET /repos/{owner}/{repo}/code-scanning/analyses', [ 'repo' => 'generated', 'tool_name' => 'generated', 'tool_guid' => , + 'pr' => 2, 'ref' => 'generated', 'sarif_id' => 'generated', 'page' => 1, @@ -13197,6 +13206,7 @@ $client->operations()->codeScanning()->listRecentAnalyses( owner: 'genera repo: 'generated', tool_name: 'generated', tool_guid: , + pr: 2, ref: 'generated', sarif_id: 'generated', page: 1, @@ -13220,6 +13230,7 @@ $client->call('LIST /repos/{owner}/{repo}/code-scanning/analyses', [ 'repo' => 'generated', 'tool_name' => 'generated', 'tool_guid' => , + 'pr' => 2, 'ref' => 'generated', 'sarif_id' => 'generated', 'page' => 1, @@ -13235,6 +13246,7 @@ $client->operations()->codeScanning()->listRecentAnalysesListing( owner: repo: 'generated', tool_name: 'generated', tool_guid: , + pr: 2, ref: 'generated', sarif_id: 'generated', page: 1, diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index c86fc159929..e690a910f06 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "a5d0ef223e8ea4b0fd40cfba849d6268", + "specHash": "a62519fb7f7e65d753064fbb86d95c90", "generatedFiles": { "files": [ { @@ -524,7 +524,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRulesetBypassActor.php", - "hash": "b36a042186b8a9bed422fe3c96c80f85" + "hash": "80aea2652b99b3094cc2f3a643300e65" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRulesetConditions.php", @@ -536,7 +536,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrgRulesetConditions.php", - "hash": "4c3980c5c065c337034572543f20471e" + "hash": "7874695b87ff862f081d0b2acaea5799" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleCreation.php", @@ -604,7 +604,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php", - "hash": "8e6765e2f48edf50f04ce11713e70199" + "hash": "0548c1fc5ad7d9aa58fa85a028cb2724" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsBillingUsage.php", @@ -1568,19 +1568,19 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookBranchProtectionRuleCreated.php", - "hash": "a2ce86baf36c9711ad794f0f7dbe641e" + "hash": "12a5a3558c6f5fc7a4f6e6b233da67e7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookBranchProtectionRuleDeleted.php", - "hash": "4adb666b20353a4505849690696e1881" + "hash": "1a707702159f2d8530e4d02e66d63fdb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookBranchProtectionRuleEdited.php", - "hash": "cc1df47921c68eea624d83c2f845c5dd" + "hash": "81615bd397d27dca466e141f55131e29" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCompleted.php", - "hash": "0476a8d155636ea851e55f9f404249dc" + "hash": "e5c657b148441f61c432026b97fc122d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCompletedFormEncoded.php", @@ -1588,7 +1588,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCreated.php", - "hash": "63a0ea71bbef09b9b739bbb06c1ef59d" + "hash": "c5d65c42264429dfc15e5abdb50b6294" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCreatedFormEncoded.php", @@ -1596,7 +1596,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRequestedAction.php", - "hash": "59ebd3318735687515c0927c15956bcd" + "hash": "7e70f31331eb98876cc92c81c1f8a765" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRequestedActionFormEncoded.php", @@ -1604,7 +1604,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRerequested.php", - "hash": "73f310fc258c920feb9f5cf5061fac41" + "hash": "daeb58cee17b0cc1c57cede3ab9d9eca" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRerequestedFormEncoded.php", @@ -1612,335 +1612,335 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteCompleted.php", - "hash": "5997a55422dc1dbb77d3490d6f07e87c" + "hash": "e6b9200aac9697efa6e862b298262d8f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteRequested.php", - "hash": "663a4024baebb505ff567e7ebb32bc22" + "hash": "11b9bcffeb252a231eaafc8625ebbf28" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteRerequested.php", - "hash": "1b44a4c90eeeb066530ba7cfbfa3d7ea" + "hash": "8c929f8404c6295f7b26206a1ce10171" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch.php", - "hash": "cf90d352210715c6b5ec14bb5d30add1" + "hash": "6e9d7fd0a8eb1f2bbac1c5ad515540a8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser.php", - "hash": "82b8f0e7fa5a9063de9afd79e78fcf08" + "hash": "3c45915a98e45a62b40d6bb1e3001c47" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated.php", - "hash": "c120c8f5dbb2f340aa06aee3ef15e540" + "hash": "a31aa173923e9e4a3210fb72d61a7118" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed.php", - "hash": "1fb2d46a6328efe59c592669a862bd19" + "hash": "1177ab48b2c7312494a655bdc9b179a0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopened.php", - "hash": "03415db81456a806c6c398a9a5f6f562" + "hash": "68590a78ddf218375c9f052db396c7c7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopenedByUser.php", - "hash": "146fb1a875f5491a13d722f49b299816" + "hash": "ef2a6a10bccf4079b8867991f79dd984" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCommitCommentCreated.php", - "hash": "7da0c28e89884d5b23c2e22b2dd11502" + "hash": "2705d27b0549ced0cb62ff004a8aa96e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCreate.php", - "hash": "c5a4d1eb7c92dc18eb1a466029aa18d2" + "hash": "b46b758aba92001d3a926828646b93ee" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDelete.php", - "hash": "b7b1e973032f9e4db58ae98d920b02cf" + "hash": "f541940214d904994a2db452b80f5cb1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertAutoDismissed.php", - "hash": "cce936901e483b5f22ca32957963a053" + "hash": "9f77f7e5146aec1cd455cb079cdecc33" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertAutoReopened.php", - "hash": "7ce0b7a81e78675b42277e674e6efbee" + "hash": "048b441cb7bf1d96ef93099b92ea67dd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertCreated.php", - "hash": "1fe86b171f1f3498199519a7f159f4c1" + "hash": "7655ed1900ee0c6b9479b3cc4b09aa06" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertDismissed.php", - "hash": "125d527ce53097192dc9812f61355169" + "hash": "f8f3b999b19d043de64e9a236424963e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertFixed.php", - "hash": "33d1129ff26a518c72c5d0dd9a7359da" + "hash": "5393f6df71e922d8dec9ae9ce313af74" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertReintroduced.php", - "hash": "a2140c8c3daf079c5411c4a79cc2e003" + "hash": "549ffad1edf532c86a39d6c6465f5675" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertReopened.php", - "hash": "ca6f8946f0363bab974a44d704cf6019" + "hash": "14c1b61dde9f7cbca657f27048a4de61" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeployKeyCreated.php", - "hash": "62c9ca9dac72fb8c3281e427b2f8002e" + "hash": "38f2114a1b566f68eecba9c2e7599c89" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeployKeyDeleted.php", - "hash": "3c2e00e3e20faeb1432e086620cfa74f" + "hash": "a969311cd45d8d2b96b7dcdadf927205" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentCreated.php", - "hash": "3c603674b11735c24baffd884b9ce1dc" + "hash": "507d29e10ae4379ff2bd680d9741caf9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentProtectionRuleRequested.php", - "hash": "b448cc50d6ac90c608495e4c88ca5bd4" + "hash": "435b56aa4c9ea426809c0251d9b260ae" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentStatusCreated.php", - "hash": "0435e65378585b797e7d53458002a8e8" + "hash": "5dcab2504897b51edd302fcec7a87344" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionAnswered.php", - "hash": "e514565153e882115329741cde72282b" + "hash": "56c86e8f293ccd16c75c7a6eb5f5a51e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCategoryChanged.php", - "hash": "3f3d2c706e9e221b8c514b35c88c9047" + "hash": "aeb94605c077ba79ecfcc9d03790ad7f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionClosed.php", - "hash": "0d7ac566973205622622fc9faadef33b" + "hash": "3976aa93ac4ff510b678261904086f79" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCommentCreated.php", - "hash": "84a3a04b5d831f60b9f7509cdcb3a4b9" + "hash": "e7ef3c4579d4b6f04b44e1ddd33e3f39" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCommentDeleted.php", - "hash": "0dfb14685b88ded39bc51fe229ae43c0" + "hash": "a7a8d19a4a5a7d8fcac6bfaecd829b20" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCommentEdited.php", - "hash": "54410496b352af20159d05e24ffc83a0" + "hash": "1b5ea1a25dde25bb1e0646c6e9cb6d48" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCreated.php", - "hash": "79b9e05be1edb2320d9b4b88bebd6701" + "hash": "c0beca3c04b3a930257846950173b5f3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionDeleted.php", - "hash": "36ce213039c158c7549c152e748eb72e" + "hash": "d5f168838ee6fb46bc3e7ca77d820b13" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionEdited.php", - "hash": "ca3cf4fe4737edce8c9d26d27b7be344" + "hash": "a8123c9acb177fc6947f1645bc86a801" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionLabeled.php", - "hash": "4a65cc301ebee62490741d876909bff3" + "hash": "f6c59f8f266a4d1d8f6aee92848159eb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionLocked.php", - "hash": "4c1f6d79b138ecd34123c561c64b7495" + "hash": "3107214b4a0a8b09298bf499b53e5660" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionPinned.php", - "hash": "e243cc1780666e620160316bf7c56da5" + "hash": "f7c9fe2c34c8423e792d3f84620696a7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionReopened.php", - "hash": "3ace8c225d5e8c1f21c5a38b01adeda2" + "hash": "dbdc9ffd3c840a34c3119f699a89951b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionTransferred.php", - "hash": "2a5bc27403256cf410feb1de211dd981" + "hash": "5ef1ef689e63d9a55a451d21639fddde" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionUnanswered.php", - "hash": "92b9c939682e904e131a6cbce64d4d3e" + "hash": "eb1b1dd7d4eb7a02b2033af25c8d5da9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionUnlabeled.php", - "hash": "f22f1c76feef28bd7f76d75409837d9c" + "hash": "18fcef69e09b6378a86afe67aa1acd01" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionUnlocked.php", - "hash": "a7641c7411f07ed9f1615baeafffa499" + "hash": "9ada36a84acd2a35e1a294889e4c106f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionUnpinned.php", - "hash": "493c18d2b1175ec689b46d994cc72f44" + "hash": "54853eb133207a511964ded4ace5a16b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookFork.php", - "hash": "60be9b8c9d98f74b58bd616613fb1126" + "hash": "b9e8626c8c6cff903c9a301a11b78106" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookGithubAppAuthorizationRevoked.php", - "hash": "9fc857323b05f78b08222cbdb700130b" + "hash": "b87599f30ee5d6d72a4f16d2e2577af3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookGollum.php", - "hash": "6b17542fddce8ee9b8b9a7c7e455fed8" + "hash": "d13a44bf5a0af8ca04ca77ccdff5a860" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationCreated.php", - "hash": "ee49652fbeddb02921fa915e21501067" + "hash": "86ca7825dd0b149e3fe8e191ad1ebe14" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationDeleted.php", - "hash": "32d42aa4b9cacd96ca468fddc08a72f6" + "hash": "c5122788bbe32c82d2f62087625af579" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationNewPermissionsAccepted.php", - "hash": "c1a09f16ffdf628ec2c09e06a90cd230" + "hash": "2dcb58f8c265b59c3b8c0564931f9c1c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationRepositoriesAdded.php", - "hash": "4c5dc8da1c7585ede2b88d52eb91518e" + "hash": "dbb3bc37bd63810d115babf7a2d33b67" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationRepositoriesRemoved.php", - "hash": "aafb251939683fd5ad5c87f0dd692f74" + "hash": "4eb726954d315d0a52da70ab0f118fe3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationSuspend.php", - "hash": "65e272ce715cef059d50c8cc6ca1d43e" + "hash": "e74a71b7b3713cf0903b7e26336f66f3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationTargetRenamed.php", - "hash": "8df43c77c04ae9b949313685f04aab31" + "hash": "f0e3be4ea7e6c7e5b3c027154769d0b6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationUnsuspend.php", - "hash": "029bd24beec414c48a48fe526595c036" + "hash": "394984c746c7248b8b504fccb7ba698f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated.php", - "hash": "be5fb03ae2ff13165130a152c95a8c2a" + "hash": "659e00da3a1ac5e5cb27348dd018f3d7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted.php", - "hash": "68d43fca1b41b5234c932f8873223372" + "hash": "ac135ec0316eac359d0478c398108a5b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited.php", - "hash": "7a47834a61d21f4cfc7843ff180073db" + "hash": "fa9b66b977c86a39bce911e016c498c3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesAssigned.php", - "hash": "06c785c8219c5420f2afde63c873997b" + "hash": "8f23425b0d62ce634b422a1225e7ceed" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed.php", - "hash": "23563597357663a877afc1b144b72d5b" + "hash": "7ab0d9fc0cfc2d8e7b62cbaa37d6b164" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted.php", - "hash": "70c38a5bc72c1d6842fc72656baea404" + "hash": "de364976c20c49f26d2c5d2e698ec644" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned.php", - "hash": "b42ffae1aff8a72e0d529cdd29717255" + "hash": "a43d8b9edd6b1053f30cdd0d2453f623" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited.php", - "hash": "651099600356c00d5c62469dffa99558" + "hash": "5609d2d94086c6987ef6be206b6a8897" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled.php", - "hash": "c8ac2e3df62325f9bb7195621f256e60" + "hash": "6b3f08613c036e5218219a23d486e038" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked.php", - "hash": "b07407e256999476de6e1770cef93eaa" + "hash": "577576ff6a8502a78c3d1b5d56f2278d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned.php", - "hash": "0d817d9499d813ff13419803baf3b621" + "hash": "c075dcb631509976e14648e7dd912553" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened.php", - "hash": "b2aa9f193b27ebb83d9f548a2cfb1b6b" + "hash": "45751b1f2553eea3abace141705401c6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesPinned.php", - "hash": "81e79a887f91333939be76293510354c" + "hash": "e81e893f6763a58132ad9d097506faf5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened.php", - "hash": "cab054de7e0281d98cdf337eb57b9983" + "hash": "0f4874db7767598535f57853aec34dc8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred.php", - "hash": "2faac9e32b7da605c13b2d41354af217" + "hash": "19e2fb258c77648a342b0e08f4429c2f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnassigned.php", - "hash": "ea61649f5db83d6676249bb1a9dfdd83" + "hash": "7a7507e07ea802859ebf0182070074b2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlabeled.php", - "hash": "fd33601ef8a1950b5780581f36195ae0" + "hash": "2229c9730451b5c0a921b29186256279" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked.php", - "hash": "496939e9eee2c6a04bd5211bceaa4f0e" + "hash": "d79b20198e0c03fa7158af9486fadc1a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnpinned.php", - "hash": "061e8d730c5ad9e2dd5b69bb6fd6889a" + "hash": "1ac48ce22d7b175f2891ea981b9ce186" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookLabelCreated.php", - "hash": "f5e034d02d56214e62b46e755e812eae" + "hash": "2efdaae6bd52122f29a767c14cab0793" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookLabelDeleted.php", - "hash": "0571a91c0944544495c7a9bea6c526cb" + "hash": "03e22aea1d9d265d2e54fc3808dcf8d5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookLabelEdited.php", - "hash": "b6e85740c5aeda748e9cafe5ed18977f" + "hash": "d6d842faa1f0ee48273fbc388a977d12" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMarketplacePurchaseCancelled.php", - "hash": "b0c02cb2f8c66f8f7eb8d17abf8b0e0d" + "hash": "05c885b00b93f572ed87a84f41b5a248" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMarketplacePurchaseChanged.php", - "hash": "7b3564bc89cca92b201bd233d2f9c356" + "hash": "acede1b08d0d24c314f248efa49be2b6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMarketplacePurchasePendingChange.php", - "hash": "2e06f0273afdeeb5b86a2806a46aa35a" + "hash": "a7774ca40b6ef66b556d8b6f9bb769b0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMarketplacePurchasePendingChangeCancelled.php", - "hash": "362258a995db8eece8be7b1ac12d5bb4" + "hash": "1c92f8657cfb2fb5d93cde40d9cbc991" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMarketplacePurchasePurchased.php", - "hash": "13929f4e7984749f3d4cf0da29756a5e" + "hash": "fa6b7b6d84d017e09d54ee062178d8d9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMemberAdded.php", - "hash": "ba66d85b62b7319cd72953dc4fd2c807" + "hash": "4e00899f52db0cf8b3b703f87ee641dd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMemberEdited.php", - "hash": "c4604f9ec124bc3f4574fd5cb989a3c6" + "hash": "ae760c347256ac5fcb0c5219a39f7ab9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMemberRemoved.php", - "hash": "b2a63e434fd073461c30a8ffc9c08ee0" + "hash": "2dbcf3f68489977207ddab19d578b419" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMembershipAdded.php", @@ -1952,59 +1952,59 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMergeGroupChecksRequested.php", - "hash": "53b29d2313af46cc20a2a32a1b0fb98a" + "hash": "23df883be06edb647dfe2836eaf1ad8a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMetaDeleted.php", - "hash": "2efde27200763d3bc032d058c45cd13a" + "hash": "bf367dba828aedbff2c6acf8dc15149b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMilestoneClosed.php", - "hash": "fe16886af5e4daae243efcb124f58b0d" + "hash": "256d0b83e46c6d0edeff728582715375" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMilestoneCreated.php", - "hash": "5c746a09698daa11a760c9a629a31646" + "hash": "e2825848e5dd90a29083a15e4714e0a4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMilestoneDeleted.php", - "hash": "bcf9e97eb1b1620089efb128c34334cd" + "hash": "cc6302661ca1ce363e74d1d064caf2d7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMilestoneEdited.php", - "hash": "97232b6fda6b51de3a61b81f7f2e89a3" + "hash": "3d3a65396d616dc618d156114772ddd6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMilestoneOpened.php", - "hash": "83580750c4acc29c7fe92163e3a26011" + "hash": "ad1ae666c854e25813e6e6b2a4d77700" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookOrgBlockBlocked.php", - "hash": "3b43c3cecde12b6aa4c33b0e8fae1fc2" + "hash": "7f7f464171dcf85e26dc64f55e0fa258" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookOrgBlockUnblocked.php", - "hash": "05f4851631a31a3680bae8af97fcdc01" + "hash": "0197a3294fa8fafb992812209cb3feca" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookOrganizationDeleted.php", - "hash": "7fa2a887998db4197de5da9868d6db50" + "hash": "5d13a21f31deabf34b7e310ab91e0e1b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookOrganizationMemberAdded.php", - "hash": "32eac48485f6e00f9f230cc9945f0765" + "hash": "0cb9bb7b4eebf0cfdd3af6193e5f4840" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookOrganizationMemberInvited.php", - "hash": "d0a23504ab1b311b8357547fe5b8d85f" + "hash": "7021186e944c59cd82c8debb06efc1f4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookOrganizationMemberRemoved.php", - "hash": "1c8c3847273baaf30814070dbe833df9" + "hash": "7c34f86fd9d3145e304be8a34e921eb2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookOrganizationRenamed.php", - "hash": "c06185730f02c265c189706229a4ef38" + "hash": "a66ccc5959820591f1abead76dc9ae5f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRubygemsMetadata.php", @@ -2012,35 +2012,35 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPackagePublished.php", - "hash": "283d761a6bdf241d7e076554f02fbad7" + "hash": "33e1dce5b9905789d4d224038df2346e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPackageUpdated.php", - "hash": "ca4322a2f069c56f3951174b4c916958" + "hash": "701ab9d14d66d0d8fe5bfc569c54cee4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPageBuild.php", - "hash": "80696c7635e647313bc195f43e8791a6" + "hash": "70f759e0a5e5b07f6edd7a2bbd1f89f9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPersonalAccessTokenRequestApproved.php", - "hash": "dea91d88490216063c67bec343f3fee9" + "hash": "181cd4dc80815a2fbd93420c8a1a5ce9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPersonalAccessTokenRequestCancelled.php", - "hash": "66dc133bcb6585bd7d79dac1a7cf17f2" + "hash": "ce32a8ccb04108aefc14b36cb8bae38f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPersonalAccessTokenRequestCreated.php", - "hash": "e79a0f10c7fb08acb2ea1f1d431ad3bd" + "hash": "331c19558755c3e96c539a7881ee6d9b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPersonalAccessTokenRequestDenied.php", - "hash": "f9d8a771d6fb85fc326323d364728536" + "hash": "17dba2eceb79c154dc78bbb093892d06" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPing.php", - "hash": "0cf8f2bf7a888dd956390cbdae6be085" + "hash": "a30bcfda44c9b8280cdd1d76461379f5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPingFormEncoded.php", @@ -2048,343 +2048,343 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectCardConverted.php", - "hash": "3488000f89c0a1210ee57bf8cc0bf98c" + "hash": "7bc5c0a2355a46be58e372fc84404ce9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectCardCreated.php", - "hash": "0fca19c3a712fafeb68926023cbeb790" + "hash": "a8f5bc4fa7b2cd4a6fe3a3c13cfb3f1b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectCardDeleted.php", - "hash": "c1b7fccd3a3759e4fad0cc87574ad20c" + "hash": "2c9963321adc5845351f449b34d0dd99" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectCardEdited.php", - "hash": "97f8d9632f2aee4d04d6fc661ef35647" + "hash": "438257b5cfba9be016278dfac608e9a0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectCardMoved.php", - "hash": "7f6f51da7df17a7c55cef387f2d44013" + "hash": "ed4e5ffdd2bfad720a2b3f47a3488d50" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectClosed.php", - "hash": "477c74328f709213a5e5cd66a2e53cdf" + "hash": "c6206b1f22a231388e99a60a07fad666" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectColumnCreated.php", - "hash": "916e359af3d533cf08fa1f310596ba3a" + "hash": "2f7556820e208080c78e8e2048862833" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectColumnDeleted.php", - "hash": "256fe8e3bb9f939bca06208efb070e1e" + "hash": "8c35faaa26d468ebabb5dc461aeeb414" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectColumnEdited.php", - "hash": "cf28fd1a20c4aa9bed357f3c7d31059d" + "hash": "b307e1f1975ebab5d7c3e99467cfd596" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectColumnMoved.php", - "hash": "2755bf89c603bc4f4e8d9634d99360d3" + "hash": "348c62f3a519cbf5d5b809ad946eed03" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectCreated.php", - "hash": "854994ff1b4734ebc92ea77f28b236d4" + "hash": "6e91310779378a6afb8a576f36b96826" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectDeleted.php", - "hash": "e25c86a210aac51c7551cf2124a1972c" + "hash": "7669622e3fed4c8a0bee63b0564be3a8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectEdited.php", - "hash": "f4f6af69707d35533ed16e0b4974c4c3" + "hash": "7bd62e920f98ceb840192a32564c5bd2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectReopened.php", - "hash": "077a11a9ea8d3786fe456fafdf6a6d7a" + "hash": "558c47963a0550e419544f2f8f1b3f1c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ProjectClosed.php", - "hash": "74f28c682ea083e15e0dbbfb4880d98f" + "hash": "176234409b4aa88efe1b42668c1c7813" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ProjectCreated.php", - "hash": "880d624d0616f2bc659a2acc12d83534" + "hash": "ea5bc4ff86eff0976516014e0c8668f7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ProjectDeleted.php", - "hash": "df67eb8b5b6fa8d244e8b452b7726c79" + "hash": "f540076515849444625a0084b4076a96" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ProjectEdited.php", - "hash": "07fc8f446699f230f37a0d26bdbbbf38" + "hash": "0cbecf1d2c27cd693a3ff4c8c4fa340a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemArchived.php", - "hash": "f9859371ec4c4529585fb21c621c7a04" + "hash": "70ef992939e7074c1458ee52b46aa9af" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemConverted.php", - "hash": "51a7845768bd1f70be759c4fe038bfea" + "hash": "752609ebe0e9db990db219a4e899f3a1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemCreated.php", - "hash": "22ed4b6f79702d84a9338b044d7f8b2f" + "hash": "909ce7b29d706ef07d2fe5696c672b2a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemDeleted.php", - "hash": "b92017aad222bb8e2c7197f30e7cc2ea" + "hash": "d9a921c6f9d64f84cfc00a4924cab1f8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemEdited.php", - "hash": "99729b985210fcea303a44f1c6d2712a" + "hash": "12ab724f0f15aae9f752f38611348080" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemReordered.php", - "hash": "557555c2b8a10e1d626d1f64454f73de" + "hash": "9b17ecf2a8fb015eaafbc54c7c37b13f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemRestored.php", - "hash": "881ec2d80df66b647424df57396f7ab8" + "hash": "2d9fb846bb2f129f9283fedceb8444c6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ProjectReopened.php", - "hash": "35fe8d36a050eca9ce84792fa02aab12" + "hash": "0f11a78c1155ae3056f37f4f535f8bc3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPublic.php", - "hash": "8c443f57cf9acf2ca993237976101f54" + "hash": "0ff29ece6498370b8f676bf1d7886460" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestAssigned.php", - "hash": "82b82ca6107a7353e30676017064a6d1" + "hash": "69baee462fc2d61f88efbc8e14edf634" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestAutoMergeDisabled.php", - "hash": "ebe3c110348001743165a996b6b68928" + "hash": "e12dd7bbc63f2b3a506f8efd1a374c5c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestAutoMergeEnabled.php", - "hash": "d284326b33309d06e8e86f9996b93147" + "hash": "378825beadd6d1b581be0ca2ec1eb797" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestClosed.php", - "hash": "39f062b92ab1aec0a273ea3b5f2fac02" + "hash": "d1c634ee850aabac1c557f90b3dace18" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestConvertedToDraft.php", - "hash": "27ad2c7659e732d9b5add08b257918f8" + "hash": "39419f486c10272bd25171582b5badf5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestDemilestoned.php", - "hash": "003637c08e588bf6806d822b3e6e21d8" + "hash": "4eaada5d6f18205f9cd4fefbd1154b10" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestDequeued.php", - "hash": "099da42b842b3c67542474d643d42688" + "hash": "46d0e6b00806d1d5406b689f29cd22d8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestEdited.php", - "hash": "a532681be559f13c1d68c8a2c9f14466" + "hash": "618f619de92a107e759d4e87026424c4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestEnqueued.php", - "hash": "edfaa64c75296a7b9f031ffbc9921fb1" + "hash": "d6e4aae3844227f612e949e7f7de72fb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestLabeled.php", - "hash": "0b7cac6ddccf5691473834ee110cf9ac" + "hash": "25725e77ac9d73227b3c7437615b563c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestLocked.php", - "hash": "a571e110162cc086f6e158d465774a08" + "hash": "ecf6ba4a110945f46d982f1c96298469" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestMilestoned.php", - "hash": "256b8543ff010332baf516579cda879b" + "hash": "6eb8a8e271b8749fe197013986966339" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestOpened.php", - "hash": "eb0115bfcc783c9759d3caad6e2db60b" + "hash": "b167fcfd3dfabb760b2cd73b76b36f90" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReadyForReview.php", - "hash": "e2945dceb2f32c45c040197ca8fa9a7c" + "hash": "afd69c27a5a39b1bcab2128c9acd4801" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReopened.php", - "hash": "b1f27a4354cf3eec8b49c7ee5042617d" + "hash": "e36cd841079a7670b5fc39eeb8d37b86" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewCommentCreated.php", - "hash": "aa0377438300f434cbe90753b7ecae61" + "hash": "377d2ad6ed5c093de296fa2ac331a29e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewCommentDeleted.php", - "hash": "ee15b164024add9c2ced7f706fdd08d3" + "hash": "a41d8f75f5874f01ee5441a6ab13e724" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewCommentEdited.php", - "hash": "35b6dbaea9c772d1d4c1831802073e0b" + "hash": "8bdb34e4ce0ac632a81f901e221e21ff" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewDismissed.php", - "hash": "07aeb8cc05d4b33bd025130c157397e9" + "hash": "8f6ea57d5975534bb63c07c12a23f48c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewEdited.php", - "hash": "4b544a23b106118b7ce469296f3e153c" + "hash": "bcc562253326c39ba77a824a9f28af37" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewRequestRemoved.php", - "hash": "72cc7d3844b0a946b6da67938daf51bd" + "hash": "0fabbc3ec5aad54c7d5091874853ec32" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewRequested.php", - "hash": "951eeb6b8cd1be30c3358b1f9a4b49e2" + "hash": "9c626f8eb13032ac5bdb0a6dc27cbed4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewSubmitted.php", - "hash": "b0b663762003b41ecfa3a9c249be4902" + "hash": "839231ae97fe8bb1c7bbe676e2b47483" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewThreadResolved.php", - "hash": "579c1a80f79db9ec8b3aa82f41a2759e" + "hash": "9a1d3cfb29296b0c2e0043377bac49fb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewThreadUnresolved.php", - "hash": "285322e0c98dea4722be59bfa3f51a06" + "hash": "b992288dc4337785bc1ca5b324695e07" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestSynchronize.php", - "hash": "c17d9fbb056733aa380a217eabf885bf" + "hash": "a6d332bd499757e9cb457004313e4ce3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestUnassigned.php", - "hash": "5a88f7ced5dfd917754339fabbc02467" + "hash": "1c6a0b76cdafacd32a7e2c10637919a4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestUnlabeled.php", - "hash": "d13edee87ee7770f89220394c47ef386" + "hash": "71ac7791b0030ec05b08e031199f5e47" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestUnlocked.php", - "hash": "240a57d008d725ac0c12a35def4ee1a2" + "hash": "f35a4b0f5cc03f6cba3a637df27e54c1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPush.php", - "hash": "1eec45e4b120e87e678c7122f8954045" + "hash": "ee6a3cf0eebc527e8f55d04f170f21fa" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRegistryPackagePublished.php", - "hash": "f40c1d19e100a3bd384ff837583a9329" + "hash": "ad0864a5141d74fdb93495d42df437fc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRegistryPackageUpdated.php", - "hash": "43d4fdea41e3a736ad526841cecc3804" + "hash": "726471431b461a353e071d98fe156cd1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookReleaseCreated.php", - "hash": "721edbd18d8485e810a9438213f1c01a" + "hash": "b150d6b6d755c6c379efdee6b92413ad" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookReleaseDeleted.php", - "hash": "da62c4a3441d549ba4a8a287d4705f0d" + "hash": "0e49c2b16bd15da56a52dd2fa4f2ed68" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookReleaseEdited.php", - "hash": "0a3b8e3e1b0b21581f99a71a26096578" + "hash": "152e1ef600997fccfc9d515ea092bedc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookReleasePrereleased.php", - "hash": "18587de681440d71c0810ce8f667b7f7" + "hash": "05a0836f2cd9e395fcfb2466d997feff" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookReleasePublished.php", - "hash": "35907964e9c14529b15d47c5ecacf56a" + "hash": "45d570a8ddf5ac1679279982dc716b94" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookReleaseReleased.php", - "hash": "e117aa197b963eafbda2087a795cd35b" + "hash": "296ac17f9c6ea5f0f467ab17d3604861" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookReleaseUnpublished.php", - "hash": "ef6fbe6709be4917719a61449ec9d847" + "hash": "144dc8c57ab99708ca6efd16044e707e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryAdvisoryPublished.php", - "hash": "b61ab285890f2161c944987591de681a" + "hash": "fd85e1abbcbe4d242f965e5f6b1c7661" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryAdvisoryReported.php", - "hash": "f1331fb2f69f9755895e43543c6e95b2" + "hash": "c691988910c2153a403795878bf393a5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryArchived.php", - "hash": "cb023d185ed54562e62547e3ca049226" + "hash": "a1feed4df63f452ff53133db50b71f79" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryCreated.php", - "hash": "84592fea1c9ada56862ebb1455ca48ec" + "hash": "72918d11ec534c62d4026d6d4bddfe26" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryDeleted.php", - "hash": "b99bcc909cfa67d3c762936b6224a9c0" + "hash": "8b573f3bd94b4c34631e98ece62c938e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryDispatchSample.php", - "hash": "ffda68d9467a709d824a2fc8ff7c5172" + "hash": "49209cd9134020aa6a7aab917f3eb220" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryEdited.php", - "hash": "698a8ebbfb37299a00c8220a7b803a23" + "hash": "8e873ec6df83d31396b6a04179f7e45d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryImport.php", - "hash": "a4193635e998b87bf63f5e86b0e85ce8" + "hash": "35771367e6af204b060a780e443dcb53" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryPrivatized.php", - "hash": "f89258925a369f945e83232b80264201" + "hash": "86d4ae136e840e4e55dc6005d1267724" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryPublicized.php", - "hash": "77046eff5e196cb0f11bd426bbcfdd1f" + "hash": "f2413b6b632bec3471910494f75cc416" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRenamed.php", - "hash": "099459848caa8f40178e41bb6be0c7c2" + "hash": "6d29c41bc61c23e363947bc125ce841a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryTransferred.php", - "hash": "2548d8b236433e7aea92b3202c8b0a45" + "hash": "e2a88030dc978956c722d468914d417d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryUnarchived.php", - "hash": "ad7fca33e7646ac591b8f01c1d65fd3b" + "hash": "3fe30b943fb54dc9bfe4d3a1b685bbb9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryVulnerabilityAlertCreate.php", - "hash": "c5abaa5a8c32ced37bfc4cdb969452fc" + "hash": "f35c0d41cfc40d7ac83ef5ba4e2a6ca8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryVulnerabilityAlertDismiss.php", - "hash": "50bcb2d37537cbbb0af8a2a97d81aaf5" + "hash": "ab0c88af46d90808212b0279a362f726" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryVulnerabilityAlertReopen.php", - "hash": "33bb732d8b4dd6d52736cfffe3a33340" + "hash": "10c4c430584a3c877aada8b6fc7793a1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryVulnerabilityAlertResolve.php", - "hash": "25bd65206df40256da063c9ccf6ecfe5" + "hash": "b495bbd242bf112b09471ac9def9f255" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertCreated.php", - "hash": "68a97d22f8066b66aad65fe043a7bd64" + "hash": "5283d775d0ba93d37858ba3c87c3b6b9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertLocationCreated.php", - "hash": "a23f7a0fa9b09659bff2cef534587c17" + "hash": "976d2202f1c3bea5bcf8ad476334c026" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertLocationCreatedFormEncoded.php", @@ -2392,123 +2392,123 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertReopened.php", - "hash": "ff5f182714d93c12cd0a69cdc398f6c9" + "hash": "544cdfee2dc1c16d9d5fe8b9292f4cd1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertResolved.php", - "hash": "2ba8a49f0fa65bf58c0393ddf19aeb3b" + "hash": "6d4cc5460ea41df24efaef854fc3f8b5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAdvisoryPublished.php", - "hash": "cde6765ffb698572bd8b0588cf6ace19" + "hash": "ce0608e50b9c082f9be6050d92eba617" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAdvisoryUpdated.php", - "hash": "6f3bd82357602bda7b505c2337de7e52" + "hash": "a60d82e954552cc5a76b3f09845513c1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAdvisoryWithdrawn.php", - "hash": "60a28132601e842744fff5039ac84f6f" + "hash": "547c5ca396ce765bf4debd221617d19d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAndAnalysis.php", - "hash": "0ec7dc4aa3e6dff59b58200913c707d8" + "hash": "0db79242f30562be913ae7e08fab9999" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipCancelled.php", - "hash": "c57b78e91418a6236155d04b08c34e9f" + "hash": "b09b8df92cd57c1f601ec940884b7807" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipCreated.php", - "hash": "33856a90c2cda6d962c742cf956113d7" + "hash": "e06ddf4938447f3dcbbe2045afe26853" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipEdited.php", - "hash": "7734a0b388a3fb2535f568e58cd28a05" + "hash": "b8f2dff3e7cc6ddfcab334de09f134b1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipPendingCancellation.php", - "hash": "5bddc2b4e098120466dc68551483e001" + "hash": "bdb1a908e0adb74c556ee3ef1bf0e5fc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipPendingTierChange.php", - "hash": "35f33d156f279d19aa622eca995329b9" + "hash": "79786d6d109721a3daa558b2345ed941" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipTierChanged.php", - "hash": "04ea619d08e5682e8cf2d4552f290195" + "hash": "1d968ae6566c9122d85295a41914991d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookStarCreated.php", - "hash": "cd8f071e889ca26e3e7e6ad2eea12739" + "hash": "c561f7e3ab431297f09dffe9743f6af4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookStarDeleted.php", - "hash": "fa742241b57b6fefb652f4c5a069171b" + "hash": "e5453eb1e389913bad20713072903c13" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookStatus.php", - "hash": "b6eef595f216d9fbb9564b0c3d2472ba" + "hash": "0309c19228b93c47dbd0aa22f5b8cfd6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookTeamAdd.php", - "hash": "7cbaffafa711140d93d9d83241f0854c" + "hash": "c37b10527a22d06187457212b39891de" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookTeamAddedToRepository.php", - "hash": "87b5256deae70b9ed78d7ffc4ad468a2" + "hash": "9f609ac480c2a6e20a89f99ba67ca5e1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookTeamCreated.php", - "hash": "a0bb534cffaac006ef53dbf281702966" + "hash": "9f7559d3c163f0325acfa68c827189d9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookTeamDeleted.php", - "hash": "bc5c4f1da14eeabd8a59d32f00edd258" + "hash": "9b3d41feba441088f8a0424b3b74c135" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookTeamEdited.php", - "hash": "b1bb68851f8686efeb9d1ab0ad971648" + "hash": "0ee012d3a74f60a14c8d3747c03eeea8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookTeamRemovedFromRepository.php", - "hash": "540a656298dc7773626bcc4e23a97b51" + "hash": "120c1a4041f10b3c4b48c1f924d76347" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookWatchStarted.php", - "hash": "8066f65a6a91a8b59c1df5a0edc9c8a0" + "hash": "84d37c4d190e5b52229a0599142e453e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowDispatch.php", - "hash": "1dac8a3294c2bdd2a258bea7a054e39b" + "hash": "a1fab93ae89b88387d93500204ca174a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobCompleted.php", - "hash": "9d5b6923256df0c1be342722abb4458d" + "hash": "c1e224dea4f55d962772bb2cb1a089c4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobInProgress.php", - "hash": "7a03606b505c32189a90ab777368a385" + "hash": "5a54e40b9e0c9b022982f262173ce0a3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobQueued.php", - "hash": "9d7bdadb000095629899d8ed2b838a65" + "hash": "29e084e743fc26509032a68c0d1421ea" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobWaiting.php", - "hash": "e7a3ddc6301a8101bfe112e6ac909cca" + "hash": "122fc82c0e870a5b5bfe4d77e4846ada" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowRunCompleted.php", - "hash": "e9b398e3a1a7317aa77de0d8ca88286d" + "hash": "48ce27f174e920821a06a72371e40fc4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowRunInProgress.php", - "hash": "f3e783475236a45a4a3feddb4a7f9983" + "hash": "0324521b7a6cfa523a8e76808d7cf289" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowRunRequested.php", - "hash": "0b4edec4be326df3d2ed60d5a53bccbc" + "hash": "673fb70fee2d77f7180eadd92971a7e3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Integration\/Permissions.php", @@ -3400,7 +3400,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCommitCommentCreated\/Comment.php", - "hash": "d4ba7856d4913bdd6bd395ae60cc72cf" + "hash": "3762bb462c9670bfaf9463525ad7fb5b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentCreated\/Deployment.php", @@ -4628,11 +4628,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "891ec985ac5c4ba1100b03cd76a706c4" + "hash": "579145321d1db65b73c62a4629aad3ac" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "9f59f5288c1769e0b9c886709ef76d39" + "hash": "b2d859e3a7310f504ce9d8cfeedc14fb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php", @@ -5336,11 +5336,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "a0eccc012be49d7c97b15e0db850367f" + "hash": "1b2925882dd494d9305360d8a0b241ad" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "4aba68f175748394b8f1a650c5953166" + "hash": "3bfd67ad49b788f7b2fd269434e19ff3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php", @@ -5588,7 +5588,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeScanning.php", - "hash": "8ae0a584506f2d6ffc60081df579b282" + "hash": "f5fa854c8d633d552f10ee03ace12aec" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Codespaces.php", @@ -11620,7 +11620,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookMergeGroupDestroyed.php", - "hash": "03c8a668adf4710ed84c81f37540e4e4" + "hash": "4d95509f2421b7e541e2dedf09cce451" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains.php", @@ -11788,27 +11788,27 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewApproved.php", - "hash": "aca69fbe0c4abe7df73c9f884f25540f" + "hash": "f80fdcb8da769179b28fe6c034c5621f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewRejected.php", - "hash": "97ec22d4e24f6dd662f4dc3d1ea60a20" + "hash": "257b88a8befeb6aa6ed26c6ab39d1985" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewRequested.php", - "hash": "19fd041f37df961b5a3b31888f2b7e30" + "hash": "2b3d0e4288332bdf3054af0efd672892" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php", - "hash": "81833c1765d22bd9b0a84552a11eebdb" + "hash": "17989ef8a69b57913c65ef2bd400ce46" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php", - "hash": "660ebab2bd94bd9463ef010ad0c3819f" + "hash": "dc5078cdcb03fba7bf028e7992c1e2b2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php", - "hash": "a12764fb2a57245294049c90867e9d9b" + "hash": "1d6244469dae7a32f003a28518336e23" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewApproved\/WorkflowRun\/Actor.php", @@ -12100,11 +12100,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookBranchProtectionConfigurationDisabled.php", - "hash": "cc86794f3e423df06c0c611c7e87e4ef" + "hash": "5a5c6cd9102625554ccb9c2bdacbff46" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookBranchProtectionConfigurationEnabled.php", - "hash": "2ba1369f327f2bb548646e2d73629004" + "hash": "f67a96fd4c5cc7831506da66f5da26e8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Meta\/Root.php", @@ -17628,27 +17628,27 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepo.php", - "hash": "8ffbd94974695d58455d71cb4f68b1e5" + "hash": "a69b3ba89a6cb68f054f7b1c91425b82" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertsForRepo.php", - "hash": "01f23c7b78bdb93ef10a7bcf225990fd" + "hash": "06e3a790b953a5eb66c3d25e5c7c65dd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoTest.php", - "hash": "24802903cf28392381c964db8060814f" + "hash": "fb5bb3baabc7cdbe6ec6424537041df2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoListing.php", - "hash": "55ca27a919f56a2bd3ae6ca4ba0e195c" + "hash": "5c2cb1bc7cac3ac2d46cdc2f43604b0d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertsForRepoListing.php", - "hash": "01bf086ad4d3f5adbf90f3dd3840047c" + "hash": "763906299392b93dde8ef696df8bd789" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoListingTest.php", - "hash": "5af406bbea9019637f34305e116e3132" + "hash": "1cabd1a58167dfec9fd30e24f1fba7f2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/GetAlert.php", @@ -17676,51 +17676,51 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListAlertInstances.php", - "hash": "6ed91652ae06201facb77193ccc4ab98" + "hash": "cea3fd082570fb684ab5d797dbce1552" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertInstances.php", - "hash": "fe4865b0a6b20c0e60545fcca949673d" + "hash": "34947e1ae5ac78c65ba59771896d870c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertInstancesTest.php", - "hash": "252cf439034dbd9cae0d9f8731dfebf7" + "hash": "837819b9ce4f7856413c89376b26490a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListAlertInstancesListing.php", - "hash": "63d46e6ca8a77b22dadefb18817630e8" + "hash": "96c95f98cc70ae589fa9c5b23a1d52af" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertInstancesListing.php", - "hash": "a3b4f63602af8091bf2e1b8086b8d63a" + "hash": "5f6f50e0cc742ec747687919a25cedd2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertInstancesListingTest.php", - "hash": "f15e485291199cfa01d2ad7a19cb239b" + "hash": "5cf0db53061426c7885134d1a4b4fac0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListRecentAnalyses.php", - "hash": "88307b3c432cc604efc67f782890c1a0" + "hash": "8c8283ca6e936e6ba0df6913a4ab2f0e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListRecentAnalyses.php", - "hash": "4f744fcad7f8f2852973163b511ff1ec" + "hash": "034f125ff066bc758d804d59354db8e9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListRecentAnalysesTest.php", - "hash": "4fb855c274c1e97043e12ffdec74c830" + "hash": "8ef3b8c72170033363549e0848fe62ab" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListRecentAnalysesListing.php", - "hash": "ba007669c723b985f5f8263a1f122ac0" + "hash": "f60ff53d45bb8609771b102e6f3db36a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListRecentAnalysesListing.php", - "hash": "f05a061feb209c9a1b8469a3ef9e8a2d" + "hash": "3eed5c566124f2bc5cc7acaa87278921" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListRecentAnalysesListingTest.php", - "hash": "910460d6929f09fe0b9f2d5414750568" + "hash": "8f86adea57bff1c9820bdc472998570d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/GetAnalysis.php", @@ -24520,7 +24520,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeScanning.php", - "hash": "e41f383549485294f8cbc8407ca9b7c7" + "hash": "01a923f7f133ef046ac9968bec025e01" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Copilot.php", @@ -24764,7 +24764,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/CodeScanning.php", - "hash": "e7de742f3915c1d986fe855d98ff7b3d" + "hash": "64cd2aff0bbb80e74e240dd2296d8bab" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/SecretScanning.php", @@ -24956,7 +24956,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "0c755bbf08a0a859a5b877b090661cba" + "hash": "f248e13197b434832a0cbb6e3c9f1df4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", @@ -24964,7 +24964,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "b2a28a4c2a159a5554c4694f89317cfd" + "hash": "b77768e180a3157762ab6af6eee4d75a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -24972,7 +24972,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", - "hash": "59c87acfb9e14c210b4c997bdde01a04" + "hash": "998b58d4e30daba5585f05e1f1b96e63" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Nine.php", @@ -25060,7 +25060,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php", - "hash": "271ff22a0c68ea8026f79dd113305f17" + "hash": "0bd1bbcad8e6f0a66a2ee13388a836ac" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", @@ -25068,7 +25068,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "308c392e37c1750ea31302f83f39951f" + "hash": "eb06c4e1ebb6c95165b202892c84a4b7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -25076,7 +25076,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", - "hash": "23bdb9499299a0f47afc0c009e703d61" + "hash": "05594522210f244e96713ea68309c113" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Ten.php", @@ -27160,7 +27160,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "8e8178c512fe42b8dd18bc98e31f9308" + "hash": "a6a0840e8714d16dad2b0df13cc8bc9d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php", @@ -27170,10 +27170,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryWebhooks.php", "hash": "9d4706ce77b43742defcdd0d66902dc3" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SimpleUserWebhooks.php", - "hash": "4710aa4af56bf2a5c67a14500df02b45" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryWebhooks\/Permissions.php", "hash": "fa3e84b7894de501cdeaec0d3722ce0d" @@ -27312,15 +27308,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Classroom.php", - "hash": "4f2cf8728235648cae15b1958de10bf2" + "hash": "b9709b377f8c5527a32934a4ad8f3e73" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Classroom.php", - "hash": "eb3e9bed508b999c4f9c087e4b6b703e" + "hash": "ce09461b1c97c031920c68619b392f0e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Classroom.php", - "hash": "2dae55a3c52ed74b6e271d6fc9062a83" + "hash": "d3dd148e540193cb96695103a37e4096" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Assignments\/AssignmentId.php", @@ -27660,19 +27656,19 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyCreated.php", - "hash": "59e323cb010c07a95e24a19e3e4edfd1" + "hash": "bb57955b2146abea082788d32f23bd4e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyDeleted.php", - "hash": "2504f38f1ea361d3757aa0964db4e5fa" + "hash": "5b4d4f3e81f335c2b45c4789171be03c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyUpdated.php", - "hash": "5f1a4d94100674359b625774a648444e" + "hash": "8cbd0410c88441b259832f297ac94f5d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyValuesUpdated.php", - "hash": "6a36baf9ed7583c29388418dd5731191" + "hash": "89aa836561bf70ab108688001d695aaa" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet822B8B83\/Tiet93E9FF34\/Tiet64571DFE\/Tiet4D2FA622.php", @@ -27752,11 +27748,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "33318fe30d614cf4a46450c45f71fb39" + "hash": "2c2fada3ff16e30970a362eaad8d7df8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "1533702d14f0bea8333c07baccff6dd2" + "hash": "e0a910c6c699a2fa62eb539875dd88ff" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -28048,119 +28044,119 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/BranchProtectionConfiguration.php", - "hash": "ca8c449458310f6dfe69594b08fc77c0" + "hash": "c9a661fc76e282a072e20a23b25f0029" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/BranchProtectionRule.php", - "hash": "cd4c68820a4b1dca0cba2cc5b6b1b115" + "hash": "9ce23e7251093899bd1ff9a624ad0663" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CheckRun.php", - "hash": "f75202e4641ee0126c147c89106e0692" + "hash": "f6edb853e3473b5f81941256346376b5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CheckSuite.php", - "hash": "0dad3c22d36c61bbb4c605ead65c2c03" + "hash": "99971863b0bedc4e8addba581bc6bea9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CodeScanningAlert.php", - "hash": "7b0663464517f8a5357a25d8100f5e7b" + "hash": "8384c9830f2c39d654f27d761d0d1383" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CommitComment.php", - "hash": "94da6501a2e7e668a19a9cad76ec8fa8" + "hash": "44ade0e1150c035ce5d85d8bda690580" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Create.php", - "hash": "113e1934be2a8681789bb002f6877639" + "hash": "cc72c792140171e0d5714c2b43033b59" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomProperty.php", - "hash": "d467362c91b587416edb4ab90390fb92" + "hash": "f72b479958011463727e0b81828841e7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomPropertyValues.php", - "hash": "15716ba61ed5931965bc89682bd4ef70" + "hash": "d8fae05d296baea7e0e8bdc5ce4ade1f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Delete.php", - "hash": "5960fc3211b99779492ae35e702663e7" + "hash": "6b7af8bf4ef22980ceb3c5048cd0e921" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DependabotAlert.php", - "hash": "d937ee23fc5a90060278481e3fd442f3" + "hash": "b11ee1aebabcae3283df10ac167b787e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeployKey.php", - "hash": "d1a1e808d655a7eb52c2c4d5e826ba27" + "hash": "9150828d97764d5f20ace6671f566327" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Deployment.php", - "hash": "af8422f487dff60a099f2bedfdc677e2" + "hash": "02f9ef9d08916114e332093fce801336" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeploymentProtectionRule.php", - "hash": "39776ceffb747dccf0d9a24a844bb875" + "hash": "3e6a9a26e229d6d5fb56cc6d0200cf41" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeploymentReview.php", - "hash": "ba1e72895e68d53fe3b3a16011fafdc0" + "hash": "1ad4fa16e632b0a4c9a84cc4ec505640" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeploymentStatus.php", - "hash": "524e30ec73c1788b65ee5fe003b567d6" + "hash": "64874884a2227de17dd13fede0086e8b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Discussion.php", - "hash": "4a561562582954d7814a88dc04d222f8" + "hash": "f48d0f88cd3e28e872296aee8de4c6eb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DiscussionComment.php", - "hash": "4948d08b92996768046b559dfa8564f1" + "hash": "6fd431ca72735dcfc4cd430255349036" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Fork.php", - "hash": "7106056b7773498859f484fc3ac9dda6" + "hash": "4e727bca0be69105ee1c59ea4fe66a98" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/GithubAppAuthorization.php", - "hash": "a35af3b938f1af69d3bd3638e311a5a8" + "hash": "14bf9e4c0196fda5cb8c7d2fd6331556" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Gollum.php", - "hash": "d7236ac2392677e4ed4f3acc302e16f7" + "hash": "a2b53d4c7076e60ea0c398694dd39372" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Installation.php", - "hash": "922cecc6039058009fd75f59b27a4c6a" + "hash": "449608fa5d7d7649544bb8d3e4680c52" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/InstallationRepositories.php", - "hash": "a63c07c9f117bae58e2a3cf8e5781c24" + "hash": "4266b78000d8f6efdd5ebacae18fc193" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/InstallationTarget.php", - "hash": "81ed9b474facf5cdbd206c9b334ba29e" + "hash": "cf7d332ec50d69d471dfa103015eeb24" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/IssueComment.php", - "hash": "ee88da07fbed6d43f87c596fc20b2bf4" + "hash": "01aef9bea962e9067f61e616fad3cc9f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Issues.php", - "hash": "09e99d81dc0e82a34aa1feb7f842f366" + "hash": "2b1593b690bc2f75a3e69a697dc8c50d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Label.php", - "hash": "4e127614c59e0930717a8aef84d2596d" + "hash": "a732821cde4f10521b379b56f6e08346" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/MarketplacePurchase.php", - "hash": "370cf0bdd4b2590ce9e99433f831b9fe" + "hash": "9795371c0fdbb0a62575df715157f9bc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Member.php", - "hash": "fd0d76eea97cb1de43d0505c7e9d3209" + "hash": "1d98ceb0a4522426ca10813cdbc49404" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Membership.php", @@ -28168,167 +28164,167 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/MergeGroup.php", - "hash": "e09231860af4084d549ed7034e1f4a1b" + "hash": "271b819b051b9f9e9042f57a1d24ce8e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Meta.php", - "hash": "223135e1374468f602b42dace67a2de5" + "hash": "b9d516a21a688b75545d8cfcba071bb5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Milestone.php", - "hash": "a93c7c4fd56eddf506a2b5d256328b71" + "hash": "fe1be8542203fd70cb1587065b84f8b8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/OrgBlock.php", - "hash": "fb555745abb85f388844403958745d48" + "hash": "49f820df417ebbdf99ebc80896feb6e7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Organization.php", - "hash": "4ce8b84c2031ab9d9f54f2deb66ec39c" + "hash": "27c91ee3d2f9ed88dbebe6ea7a538a31" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Package.php", - "hash": "58cbf4408ad8b18c23cb3901a7ad0977" + "hash": "feb82a820f8d7e58d0db4192ba79a1da" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/PageBuild.php", - "hash": "6ee1863e2ef298878889b54eeedd2549" + "hash": "8d07c5222c8f2831dbdfd86c5a2b0bb3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/PersonalAccessTokenRequest.php", - "hash": "09522c91489ed1fd3a9b6ef5fc14f579" + "hash": "75ae8f3b136a22466911a2afdc008500" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Ping.php", - "hash": "d62dd9c5a4e03f461c6009620cd61d36" + "hash": "311e24fc00bddce1cd3631ca2cd08865" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ProjectCard.php", - "hash": "bb5483f571e95f286e73254fe27272b2" + "hash": "f03f6e14d892948ea90cfb178d952e84" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Project.php", - "hash": "294d7b36cf1fe73d06e1874de452a978" + "hash": "b2af0d2371b91563b93f1a4675a61cd0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ProjectColumn.php", - "hash": "6c503f26eec0c38d12c43da83062d7c4" + "hash": "13c5c20e0c32cdcfe59aaa58f54348c4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ProjectsV2.php", - "hash": "82a4ce71a5935c4d4f5d7a8f6a9efe88" + "hash": "392d41fe84bb87cc7327456808c7054f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ProjectsV2Item.php", - "hash": "f1aef716946b55d1facdee1eff1e1ae9" + "hash": "1d20c5d4e288a2e7e5c9ed314415d84f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Public_.php", - "hash": "3b707b64445e5c4ebedc269c9efbd45b" + "hash": "3a2936f2c392f62928447f233676df1d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/PullRequest.php", - "hash": "9622a1277d396359c9580b2749983a75" + "hash": "15e7fddb6e77034aecf411748f606a95" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/PullRequestReviewComment.php", - "hash": "5253ca3ee8d54cfe6abcd5f88a60910d" + "hash": "d19aa78a20372af2eb5d38f181b16117" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/PullRequestReview.php", - "hash": "54e8fbde2e182d98ab6e4ea1347870cd" + "hash": "ac361c071e30b9bdc0dd2c2b4163ef21" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/PullRequestReviewThread.php", - "hash": "a9ea87ee0b2df38ee8a2a3a13b634aae" + "hash": "11555abf633d25fea2976e67bb0e0c20" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Push.php", - "hash": "c5d7ac2307882f47f1d3f0bb56bd3112" + "hash": "c0cf4a13bb5eaa8fbe76d39ca56dc24f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/RegistryPackage.php", - "hash": "76e109544adc0d7f91f67be57c087249" + "hash": "40ca9bfec62277641216c294c58f4340" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Release.php", - "hash": "c597cab26b6b325123883c584219be79" + "hash": "08b7cb958072c8bb24b83377da6f953e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/RepositoryAdvisory.php", - "hash": "66d4abb483ac8c2de216ff80ce1d26c2" + "hash": "183344a61b11628c1d7048b7598be26f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Repository.php", - "hash": "f50c0ad27fbc01dbe10a82e51e954472" + "hash": "666b0eca303337fef3e3b60a48364f85" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/RepositoryDispatch.php", - "hash": "41a2c0442d3628c0b28745b380671911" + "hash": "ccae30db33eb868d7de6b455c6ccbb91" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/RepositoryImport.php", - "hash": "f26c807ce8a42a5e17f47aaba3149da8" + "hash": "8a5b9b5765acf5074d8da766f3464f62" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/RepositoryRuleset.php", - "hash": "1c2bdb6fbb36b84a05dc18bd7ee2d2b9" + "hash": "4e0b3dd6d0bf4c2e91394bad5e070bde" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/RepositoryVulnerabilityAlert.php", - "hash": "632bbe715900c50bfb92344a27727a6c" + "hash": "835873550d0e4b32e39a6d86683a628a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlert.php", - "hash": "7563c8fa4180d8367b1541349f0ec53a" + "hash": "63149909380dff0c5f4e48b941ea0122" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlertLocation.php", - "hash": "daed66c79dc9357593b63f6dede1d3a7" + "hash": "c2a33c89515b96d6e3f8c23be2581a9c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecurityAdvisory.php", - "hash": "3a946bcc07d9cc68e055862b3f1033d5" + "hash": "7aa74b38d10ccdf9557108dad1d2c73b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecurityAndAnalysis.php", - "hash": "c24ba88d6ea643ed718082eb4fe09a66" + "hash": "1b6e7f5bcdda7f7b9dca19b05c2c1933" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Sponsorship.php", - "hash": "47ad4d50ff0afaf4cbb600b244a8dd59" + "hash": "75061154c246e3272d436733f26002a6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Star.php", - "hash": "ab9cfad8487558529d456b94d403dbd2" + "hash": "15a6b96b6270632adcd03d32469cf149" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Status.php", - "hash": "d2a49a0105381c4e14d4d25e273831cd" + "hash": "ef1c11866179b0fa69937566c60c3c4a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/TeamAdd.php", - "hash": "05be3bd2a1b7442400341f7ee17bab3b" + "hash": "58c8db5c12f854e38c4c65429c461c5a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Team.php", - "hash": "9c0786d1a64aada1557c128e03069840" + "hash": "2bb223e5e7810d09dbaa8c39871e5bed" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Watch.php", - "hash": "24bef1fb68a33c44440ab4b28b58e021" + "hash": "35f0d079cc989f6b8dc2ecae03e10507" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/WorkflowDispatch.php", - "hash": "95c4e18032d2c2adc28604a4d49754d2" + "hash": "f5bb2a450f07b19b0906a30564eb3f5f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/WorkflowJob.php", - "hash": "15985f45cc3768dccdbd91b4c85b0908" + "hash": "f241816ab6ae3d9e6040c67e479c3b2b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/WorkflowRun.php", - "hash": "d393f293ff1489ad42b2de367b919147" + "hash": "82d5feebc210ab4eef5b22388d0740e0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningRefFull.php", @@ -28576,7 +28572,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertValidated.php", - "hash": "6156c8fd237b0ec406d6d33434f5427f" + "hash": "a0035db4cc4fb2fdcfdf90efab3ef574" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Pages\/Deployments.php", @@ -30024,15 +30020,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2StatusUpdateCreated.php", - "hash": "6865e9d46638231488b9e3b7a44382fa" + "hash": "6f61d4217041ba4c2cc12349f972097f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2StatusUpdateDeleted.php", - "hash": "76270ba0176c0b81ab7594c4c3e288df" + "hash": "fa4c02c5f686d166a818e0d33164a9e4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2StatusUpdateEdited.php", - "hash": "268ebdcce98f9049e16863145db13ece" + "hash": "cfdb9da20da13922a6828282af989d6e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet8B8BCF54\/TietBDCE4C1B\/Tiet5B8E1256\/Tiet2DC1C4C9.php", @@ -30080,7 +30076,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ProjectsV2StatusUpdate.php", - "hash": "ff6ac5108110b1c04c9b6f6e3087e54b" + "hash": "869a161592bd6a287218289fc264081e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietCE7694F2\/Tiet7ECCBCAF\/TietF71CBA25\/Tiet10035FEE.php", @@ -30400,19 +30396,19 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesParentIssueAdded.php", - "hash": "5077613a4028982a9173bea3be0b57e8" + "hash": "86e5be5893c3c82573ff4efcb531a79c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesParentIssueRemoved.php", - "hash": "d80721ab7131a91ab4c89e2f567e95eb" + "hash": "14f26aab18f55b5dad6c71316d409056" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueAdded.php", - "hash": "84ecfc59742f47acc55ce885c8449947" + "hash": "cd1ff748401a97c3700b98cfca91cad1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueRemoved.php", - "hash": "7ad0e26ede2e366ecba9a3977d352431" + "hash": "91aacf0756bcd8c5f7ffc58c1a391c8f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Epss.php", @@ -30428,7 +30424,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SubIssues.php", - "hash": "dc3202c1602121aa5d0d8e06aace1545" + "hash": "a600c2e9f3251fee241d0a1e9b7a5a84" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CvssSeverities.php", @@ -30448,7 +30444,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssignmentsForAnAssignment.php", - "hash": "4e0347cbe7214efbcccc91d3462c0ae2" + "hash": "c0031d84bef33560877a4a9804cf01be" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentTest.php", @@ -30460,7 +30456,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListing.php", - "hash": "ee3714c4146b9cfeaee88fc613c30ca4" + "hash": "b53dad50304d556fe35793cdaf7a8f08" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListingTest.php", diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/BranchProtectionConfiguration.php b/clients/GitHub/src/Internal/Hydrator/WebHook/BranchProtectionConfiguration.php index 3e648c02a36..7cc6b4962f2 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/BranchProtectionConfiguration.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/BranchProtectionConfiguration.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookBranchProtectionConfigurationDisabled; use ApiClients\Client\GitHub\Schema\WebhookBranchProtectionConfigurationEnabled; use EventSauce\ObjectHydrator\IterableList; @@ -63,7 +62,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookBranchProtectionConfigurationEnabled' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookBranchProtectionConfigurationEnabled($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -176,7 +174,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3388,256 +3386,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookBranchProtectionConfigurationEnabled(array $payload): WebhookBranchProtectionConfigurationEnabled { $properties = []; @@ -3744,7 +3492,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3830,7 +3578,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookBranchProtectionConfigurationEnabled' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookBranchProtectionConfigurationEnabled($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -3934,7 +3681,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5635,97 +5382,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookBranchProtectionConfigurationEnabled(mixed $object): mixed { assert($object instanceof WebhookBranchProtectionConfigurationEnabled); @@ -5766,7 +5422,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/BranchProtectionRule.php b/clients/GitHub/src/Internal/Hydrator/WebHook/BranchProtectionRule.php index 5aefa108695..4d498cf06eb 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/BranchProtectionRule.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/BranchProtectionRule.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookBranchProtectionRuleCreated; use ApiClients\Client\GitHub\Schema\WebhookBranchProtectionRuleDeleted; use ApiClients\Client\GitHub\Schema\WebhookBranchProtectionRuleEdited; @@ -78,7 +77,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhooksRule' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksRule($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookBranchProtectionRuleDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookBranchProtectionRuleDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookBranchProtectionRuleEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookBranchProtectionRuleEdited($payload), 'ApiClients\Client\GitHub\Schema\WebhookBranchProtectionRuleEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes($payload), @@ -224,7 +222,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3763,256 +3761,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookBranchProtectionRuleDeleted(array $payload): WebhookBranchProtectionRuleDeleted { $properties = []; @@ -4139,7 +3887,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4309,7 +4057,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4965,7 +4713,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhooksRule' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksRule($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookBranchProtectionRuleDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookBranchProtectionRuleDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookBranchProtectionRuleEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookBranchProtectionRuleEdited($object), 'ApiClients\Client\GitHub\Schema\WebhookBranchProtectionRuleEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes($object), @@ -5086,7 +4833,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_rule: $result['rule'] = $rule; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6908,97 +6655,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookBranchProtectionRuleDeleted(mixed $object): mixed { assert($object instanceof WebhookBranchProtectionRuleDeleted); @@ -7043,7 +6699,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_rule: $result['rule'] = $rule; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7102,7 +6758,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_rule: $result['rule'] = $rule; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/CheckRun.php b/clients/GitHub/src/Internal/Hydrator/WebHook/CheckRun.php index 1b729c53127..6d025805c5e 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/CheckRun.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/CheckRun.php @@ -27,7 +27,6 @@ use ApiClients\Client\GitHub\Schema\SimpleCheckSuite; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookCheckRunCompleted; use ApiClients\Client\GitHub\Schema\WebhookCheckRunCompletedFormEncoded; use ApiClients\Client\GitHub\Schema\WebhookCheckRunCreated; @@ -98,7 +97,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookCheckRunCompletedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckRunCompletedFormEncoded($payload), 'ApiClients\Client\GitHub\Schema\WebhookCheckRunCreated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckRunCreated($payload), 'ApiClients\Client\GitHub\Schema\WebhookCheckRunCreatedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckRunCreatedFormEncoded($payload), @@ -218,7 +216,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5800,256 +5798,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckRunCompletedFormEncoded(array $payload): WebhookCheckRunCompletedFormEncoded { $properties = []; @@ -6186,7 +5934,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6366,7 +6114,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6556,7 +6304,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6687,7 +6435,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookCheckRunCompletedFormEncoded' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckRunCompletedFormEncoded($object), 'ApiClients\Client\GitHub\Schema\WebhookCheckRunCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckRunCreated($object), 'ApiClients\Client\GitHub\Schema\WebhookCheckRunCreatedFormEncoded' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckRunCreatedFormEncoded($object), @@ -6798,7 +6545,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9683,97 +9430,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckRunCompletedFormEncoded(mixed $object): mixed { assert($object instanceof WebhookCheckRunCompletedFormEncoded); @@ -9825,7 +9481,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9886,7 +9542,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_requestedAction: $result['requested_action'] = $requestedAction; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9959,7 +9615,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/CheckSuite.php b/clients/GitHub/src/Internal/Hydrator/WebHook/CheckSuite.php index 53c6616c678..974e7147547 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/CheckSuite.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/CheckSuite.php @@ -12,7 +12,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookCheckSuiteCompleted; use ApiClients\Client\GitHub\Schema\WebhookCheckSuiteCompleted\CheckSuite\App; use ApiClients\Client\GitHub\Schema\WebhookCheckSuiteCompleted\CheckSuite\App\Owner; @@ -75,7 +74,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookCheckSuiteRequested' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckSuiteRequested($payload), 'ApiClients\Client\GitHub\Schema\WebhookCheckSuiteRequested\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite($payload), 'ApiClients\Client\GitHub\Schema\WebhookCheckSuiteRequested\CheckSuite\App' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite⚡️App($payload), @@ -223,7 +221,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4733,256 +4731,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckSuiteRequested(array $payload): WebhookCheckSuiteRequested { $properties = []; @@ -5109,7 +4857,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6557,7 +6305,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7948,7 +7696,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookCheckSuiteRequested' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckSuiteRequested($object), 'ApiClients\Client\GitHub\Schema\WebhookCheckSuiteRequested\CheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite($object), 'ApiClients\Client\GitHub\Schema\WebhookCheckSuiteRequested\CheckSuite\App' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite⚡️App($object), @@ -8071,7 +7818,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -10536,97 +10283,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCheckSuiteRequested(mixed $object): mixed { assert($object instanceof WebhookCheckSuiteRequested); @@ -10671,7 +10327,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11485,7 +11141,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/CodeScanningAlert.php b/clients/GitHub/src/Internal/Hydrator/WebHook/CodeScanningAlert.php index 2372b113867..c85147d41f0 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/CodeScanningAlert.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/CodeScanningAlert.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertAppearedInBranch; use ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert; use ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\DismissedBy; @@ -81,7 +80,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser($payload), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert($payload), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissedBy' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissedBy($payload), @@ -273,7 +271,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4244,256 +4242,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser(array $payload): WebhookCodeScanningAlertClosedByUser { $properties = []; @@ -4642,7 +4390,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5639,7 +5387,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6421,7 +6169,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7429,7 +7177,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -8176,7 +7924,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -8789,7 +8537,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser($object), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert($object), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissedBy' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissedBy($object), @@ -8939,7 +8686,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11045,97 +10792,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser(mixed $object): mixed { assert($object instanceof WebhookCodeScanningAlertClosedByUser); @@ -11186,7 +10842,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11697,7 +11353,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -12068,7 +11724,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -12607,7 +12263,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -12957,7 +12613,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/CommitComment.php b/clients/GitHub/src/Internal/Hydrator/WebHook/CommitComment.php index 7323fe88557..88e501c8205 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/CommitComment.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/CommitComment.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookCommitCommentCreated; use ApiClients\Client\GitHub\Schema\WebhookCommitCommentCreated\Comment; use ApiClients\Client\GitHub\Schema\WebhookCommitCommentCreated\Comment\Reactions; @@ -68,7 +67,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -200,7 +198,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3982,256 +3980,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -4297,7 +4045,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4404,7 +4151,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6386,97 +6133,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Create.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Create.php index 39bff22f03b..71e41a893ab 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Create.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Create.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookCreate; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -218,7 +216,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3430,256 +3428,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3742,7 +3490,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3862,7 +3609,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5563,97 +5310,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php b/clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php index 5605afdfefd..b6a54924bde 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php @@ -7,7 +7,7 @@ use ApiClients\Client\GitHub\Schema\EnterpriseWebhooks; use ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHub\Schema\SimpleInstallation; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; +use ApiClients\Client\GitHub\Schema\SimpleUser; use ApiClients\Client\GitHub\Schema\WebhookCustomPropertyCreated; use ApiClients\Client\GitHub\Schema\WebhookCustomPropertyDeleted; use ApiClients\Client\GitHub\Schema\WebhookCustomPropertyDeleted\Definition; @@ -52,7 +52,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\EnterpriseWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($payload), 'ApiClients\Client\GitHub\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyDeleted\Definition' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyDeleted⚡️Definition($payload), 'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyUpdated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyUpdated($payload), @@ -166,7 +166,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -618,7 +618,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Orga } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(array $payload): SimpleUser { $properties = []; $missingFields = []; @@ -854,17 +854,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Simp after_starredAt: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new SimpleUserWebhooks(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -974,7 +974,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1134,7 +1134,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1194,7 +1194,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\EnterpriseWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($object), 'ApiClients\Client\GitHub\Schema\SimpleInstallation' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($object), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyDeleted\Definition' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyDeleted⚡️Definition($object), 'ApiClients\Client\GitHub\Schema\WebhookCustomPropertyUpdated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCustomPropertyUpdated($object), @@ -1305,7 +1305,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -1508,9 +1508,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(mixed $object): mixed { - assert($object instanceof SimpleUserWebhooks); + assert($object instanceof SimpleUser); $result = []; $name = $object->name; @@ -1644,7 +1644,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -1706,7 +1706,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/CustomPropertyValues.php b/clients/GitHub/src/Internal/Hydrator/WebHook/CustomPropertyValues.php index f9f83b3df3a..ced69edb359 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/CustomPropertyValues.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/CustomPropertyValues.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookCustomPropertyValuesUpdated; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -174,7 +172,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3408,256 +3406,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Orga } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3720,7 +3468,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3823,7 +3570,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $newPropertyValues = $object->newPropertyValues; @@ -5544,97 +5291,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Delete.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Delete.php index 3e75d9d0269..82fcc8d76de 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Delete.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Delete.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookDelete; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -196,7 +194,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3408,256 +3406,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3720,7 +3468,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3829,7 +3576,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5530,97 +5277,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/DependabotAlert.php b/clients/GitHub/src/Internal/Hydrator/WebHook/DependabotAlert.php index f5640250480..7626b01c64d 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/DependabotAlert.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/DependabotAlert.php @@ -23,7 +23,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookDependabotAlertAutoDismissed; use ApiClients\Client\GitHub\Schema\WebhookDependabotAlertAutoReopened; use ApiClients\Client\GitHub\Schema\WebhookDependabotAlertCreated; @@ -87,7 +86,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookDependabotAlertAutoReopened' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDependabotAlertAutoReopened($payload), 'ApiClients\Client\GitHub\Schema\WebhookDependabotAlertCreated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDependabotAlertCreated($payload), 'ApiClients\Client\GitHub\Schema\WebhookDependabotAlertDismissed' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDependabotAlertDismissed($payload), @@ -225,7 +223,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4243,256 +4241,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDependabotAlertAutoReopened(array $payload): WebhookDependabotAlertAutoReopened { $properties = []; @@ -4619,7 +4367,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4769,7 +4517,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4919,7 +4667,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5069,7 +4817,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5219,7 +4967,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5369,7 +5117,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5465,7 +5213,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookDependabotAlertAutoReopened' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDependabotAlertAutoReopened($object), 'ApiClients\Client\GitHub\Schema\WebhookDependabotAlertCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDependabotAlertCreated($object), 'ApiClients\Client\GitHub\Schema\WebhookDependabotAlertDismissed' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDependabotAlertDismissed($object), @@ -5578,7 +5325,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7639,97 +7386,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDependabotAlertAutoReopened(mixed $object): mixed { assert($object instanceof WebhookDependabotAlertAutoReopened); @@ -7774,7 +7430,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7824,7 +7480,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7874,7 +7530,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7924,7 +7580,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7974,7 +7630,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8024,7 +7680,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/DeployKey.php b/clients/GitHub/src/Internal/Hydrator/WebHook/DeployKey.php index 9c2caa9114a..12b78d3344e 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/DeployKey.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/DeployKey.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookDeployKeyCreated; use ApiClients\Client\GitHub\Schema\WebhookDeployKeyDeleted; use ApiClients\Client\GitHub\Schema\WebhooksDeployKey; @@ -65,7 +64,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookDeployKeyDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeployKeyDeleted($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -198,7 +196,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3528,256 +3526,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeployKeyDeleted(array $payload): WebhookDeployKeyDeleted { $properties = []; @@ -3904,7 +3652,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3991,7 +3739,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookDeployKeyDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeployKeyDeleted($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -4099,7 +3846,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5845,97 +5592,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeployKeyDeleted(mixed $object): mixed { assert($object instanceof WebhookDeployKeyDeleted); @@ -5980,7 +5636,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Deployment.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Deployment.php index c80d509b7b6..fdd584607b0 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Deployment.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Deployment.php @@ -13,7 +13,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated; use ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\Deployment\Creator; use ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp; @@ -77,7 +76,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhooksWorkflow' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow($payload), 'ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun($payload), 'ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun\Actor' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️Actor($payload), @@ -217,7 +215,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4790,256 +4788,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow(array $payload): WebhooksWorkflow { $properties = []; @@ -7678,7 +7426,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhooksWorkflow' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow($object), 'ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun($object), 'ApiClients\Client\GitHub\Schema\WebhookDeploymentCreated\WorkflowRun\Actor' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️Actor($object), @@ -7793,7 +7540,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflow = $object->workflow; @@ -10323,97 +10070,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow(mixed $object): mixed { assert($object instanceof WebhooksWorkflow); diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php b/clients/GitHub/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php index 23f95f6e156..50565c68467 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php @@ -16,7 +16,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookDeploymentProtectionRuleRequested; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -67,7 +66,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHub\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -223,7 +221,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3852,256 +3850,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Simp } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -4166,7 +3914,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHub\Schema\SimpleInstallation' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4323,7 +4070,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6220,97 +5967,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/DeploymentReview.php b/clients/GitHub/src/Internal/Hydrator/WebHook/DeploymentReview.php index 9452c8fbbff..04141f30303 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/DeploymentReview.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/DeploymentReview.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookDeploymentReviewApproved; use ApiClients\Client\GitHub\Schema\WebhookDeploymentReviewApproved\WorkflowRun; use ApiClients\Client\GitHub\Schema\WebhookDeploymentReviewApproved\WorkflowRun\Actor; @@ -75,7 +74,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhooksWorkflowJobRun' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflowJobRun($payload), 'ApiClients\Client\GitHub\Schema\WebhookDeploymentReviewApproved\WorkflowRun' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentReviewApproved⚡️WorkflowRun($payload), 'ApiClients\Client\GitHub\Schema\WebhookDeploymentReviewApproved\WorkflowRun\Actor' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentReviewApproved⚡️WorkflowRun⚡️Actor($payload), @@ -258,7 +256,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3749,256 +3747,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflowJobRun(array $payload): WebhooksWorkflowJobRun { $properties = []; @@ -6705,7 +6453,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -9390,7 +9138,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -12396,7 +12144,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhooksWorkflowJobRun' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflowJobRun($object), 'ApiClients\Client\GitHub\Schema\WebhookDeploymentReviewApproved\WorkflowRun' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentReviewApproved⚡️WorkflowRun($object), 'ApiClients\Client\GitHub\Schema\WebhookDeploymentReviewApproved\WorkflowRun\Actor' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentReviewApproved⚡️WorkflowRun⚡️Actor($object), @@ -12552,7 +12299,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_reviewers: $result['reviewers'] = $reviewers; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $since = $object->since; @@ -14441,97 +14188,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflowJobRun(mixed $object): mixed { assert($object instanceof WebhooksWorkflowJobRun); @@ -16228,7 +15884,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_reviewers: $result['reviewers'] = $reviewers; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $since = $object->since; @@ -17924,7 +17580,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_reviewers: $result['reviewers'] = $reviewers; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $since = $object->since; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/DeploymentStatus.php b/clients/GitHub/src/Internal/Hydrator/WebHook/DeploymentStatus.php index 0d0c8df291b..bf3d47fa953 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/DeploymentStatus.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/DeploymentStatus.php @@ -13,7 +13,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookDeploymentStatusCreated; use ApiClients\Client\GitHub\Schema\WebhookDeploymentStatusCreated\CheckRun; use ApiClients\Client\GitHub\Schema\WebhookDeploymentStatusCreated\Deployment; @@ -85,7 +84,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhooksWorkflow' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow($payload), 'ApiClients\Client\GitHub\Schema\WebhookDeploymentStatusCreated\WorkflowRun' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentStatusCreated⚡️WorkflowRun($payload), 'ApiClients\Client\GitHub\Schema\WebhookDeploymentStatusCreated\WorkflowRun\Actor' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentStatusCreated⚡️WorkflowRun⚡️Actor($payload), @@ -266,7 +264,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6265,256 +6263,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow(array $payload): WebhooksWorkflow { $properties = []; @@ -9376,7 +9124,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhooksWorkflow' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow($object), 'ApiClients\Client\GitHub\Schema\WebhookDeploymentStatusCreated\WorkflowRun' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentStatusCreated⚡️WorkflowRun($object), 'ApiClients\Client\GitHub\Schema\WebhookDeploymentStatusCreated\WorkflowRun\Actor' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDeploymentStatusCreated⚡️WorkflowRun⚡️Actor($object), @@ -9504,7 +9251,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflow = $object->workflow; @@ -12881,97 +12628,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow(mixed $object): mixed { assert($object instanceof WebhooksWorkflow); diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Discussion.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Discussion.php index ff4fac209da..c64857bdefc 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Discussion.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Discussion.php @@ -16,7 +16,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookDiscussionAnswered; use ApiClients\Client\GitHub\Schema\WebhookDiscussionCategoryChanged; use ApiClients\Client\GitHub\Schema\WebhookDiscussionCategoryChanged\Changes; @@ -94,7 +93,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookDiscussionCategoryChanged' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCategoryChanged($payload), 'ApiClients\Client\GitHub\Schema\WebhookDiscussionCategoryChanged\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes($payload), 'ApiClients\Client\GitHub\Schema\WebhookDiscussionCategoryChanged\Changes\Category' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes⚡️Category($payload), @@ -268,7 +266,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5105,256 +5103,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCategoryChanged(array $payload): WebhookDiscussionCategoryChanged { $properties = []; @@ -5501,7 +5249,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5858,7 +5606,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6008,7 +5756,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6158,7 +5906,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6328,7 +6076,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6617,7 +6365,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6863,7 +6611,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7013,7 +6761,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7163,7 +6911,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7333,7 +7081,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7522,7 +7270,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7692,7 +7440,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7842,7 +7590,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7992,7 +7740,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -8086,7 +7834,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookDiscussionCategoryChanged' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCategoryChanged($object), 'ApiClients\Client\GitHub\Schema\WebhookDiscussionCategoryChanged\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes($object), 'ApiClients\Client\GitHub\Schema\WebhookDiscussionCategoryChanged\Changes\Category' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes⚡️Category($object), @@ -8219,7 +7966,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -10729,97 +10476,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCategoryChanged(mixed $object): mixed { assert($object instanceof WebhookDiscussionCategoryChanged); @@ -10868,7 +10524,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -10985,7 +10641,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11035,7 +10691,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11085,7 +10741,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11144,7 +10800,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11246,7 +10902,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11330,7 +10986,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11380,7 +11036,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11430,7 +11086,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11484,7 +11140,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11541,7 +11197,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11595,7 +11251,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11645,7 +11301,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11695,7 +11351,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/DiscussionComment.php b/clients/GitHub/src/Internal/Hydrator/WebHook/DiscussionComment.php index b847ee2d244..2eb2eff00f9 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/DiscussionComment.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/DiscussionComment.php @@ -17,7 +17,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookDiscussionCommentCreated; use ApiClients\Client\GitHub\Schema\WebhookDiscussionCommentDeleted; use ApiClients\Client\GitHub\Schema\WebhookDiscussionCommentEdited; @@ -80,7 +79,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookDiscussionCommentDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCommentDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookDiscussionCommentEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCommentEdited($payload), 'ApiClients\Client\GitHub\Schema\WebhookDiscussionCommentEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes($payload), @@ -236,7 +234,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5073,256 +5071,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCommentDeleted(array $payload): WebhookDiscussionCommentDeleted { $properties = []; @@ -5469,7 +5217,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5659,7 +5407,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5822,7 +5570,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookDiscussionCommentDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCommentDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookDiscussionCommentEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCommentEdited($object), 'ApiClients\Client\GitHub\Schema\WebhookDiscussionCommentEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes($object), @@ -5937,7 +5684,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8447,97 +8194,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookDiscussionCommentDeleted(mixed $object): mixed { assert($object instanceof WebhookDiscussionCommentDeleted); @@ -8586,7 +8242,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8644,7 +8300,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Fork.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Fork.php index 5dbd535aec8..932cf316397 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Fork.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Fork.php @@ -12,7 +12,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookFork; use ApiClients\Client\GitHub\Schema\WebhookFork\Forkee; use ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\License; @@ -68,7 +67,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -189,7 +187,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4835,256 +4833,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -5151,7 +4899,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -5255,7 +5002,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7581,97 +7328,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/GithubAppAuthorization.php b/clients/GitHub/src/Internal/Hydrator/WebHook/GithubAppAuthorization.php index 3d5a8a29ba1..7c2eac1659f 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/GithubAppAuthorization.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/GithubAppAuthorization.php @@ -4,7 +4,7 @@ namespace ApiClients\Client\GitHub\Internal\Hydrator\WebHook; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; +use ApiClients\Client\GitHub\Schema\SimpleUser; use ApiClients\Client\GitHub\Schema\WebhookGithubAppAuthorizationRevoked; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -42,7 +42,7 @@ public function hydrateObject(string $className, array $payload): object { return match ($className) { 'ApiClients\Client\GitHub\Schema\WebhookGithubAppAuthorizationRevoked' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookGithubAppAuthorizationRevoked($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } @@ -73,7 +73,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -97,7 +97,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(array $payload): SimpleUser { $properties = []; $missingFields = []; @@ -333,17 +333,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Simp after_starredAt: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new SimpleUserWebhooks(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -379,7 +379,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHub\Schema\WebhookGithubAppAuthorizationRevoked' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookGithubAppAuthorizationRevoked($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -451,15 +451,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_action: $result['action'] = $action; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(mixed $object): mixed { - assert($object instanceof SimpleUserWebhooks); + assert($object instanceof SimpleUser); $result = []; $name = $object->name; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Gollum.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Gollum.php index ad9628bb19e..35cd88bede1 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Gollum.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Gollum.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookGollum; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -174,7 +172,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3386,256 +3384,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3698,7 +3446,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3808,7 +3555,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5509,97 +5256,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Installation.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Installation.php index 29766d86f69..cbfb69feb7d 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Installation.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Installation.php @@ -15,7 +15,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookInstallationCreated; use ApiClients\Client\GitHub\Schema\WebhookInstallationDeleted; use ApiClients\Client\GitHub\Schema\WebhookInstallationNewPermissionsAccepted; @@ -70,7 +69,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhooksUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksUser($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookInstallationDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookInstallationDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookInstallationNewPermissionsAccepted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookInstallationNewPermissionsAccepted($payload), 'ApiClients\Client\GitHub\Schema\WebhookInstallationSuspend' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookInstallationSuspend($payload), @@ -217,7 +215,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4455,256 +4453,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookInstallationDeleted(array $payload): WebhookInstallationDeleted { $properties = []; @@ -4833,7 +4581,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4985,7 +4733,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5137,7 +4885,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5289,7 +5037,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5377,7 +5125,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhooksUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksUser($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookInstallationDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookInstallationDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookInstallationNewPermissionsAccepted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookInstallationNewPermissionsAccepted($object), 'ApiClients\Client\GitHub\Schema\WebhookInstallationSuspend' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookInstallationSuspend($object), @@ -5508,7 +5255,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7871,97 +7618,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookInstallationDeleted(mixed $object): mixed { assert($object instanceof WebhookInstallationDeleted); @@ -8020,7 +7676,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8084,7 +7740,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8148,7 +7804,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8212,7 +7868,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/InstallationRepositories.php b/clients/GitHub/src/Internal/Hydrator/WebHook/InstallationRepositories.php index f76baf9ab38..68e3365ea08 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/InstallationRepositories.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/InstallationRepositories.php @@ -16,7 +16,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookInstallationRepositoriesAdded; use ApiClients\Client\GitHub\Schema\WebhookInstallationRepositoriesRemoved; use ApiClients\Client\GitHub\Schema\WebhooksUser; @@ -68,7 +67,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhooksUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksUser($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookInstallationRepositoriesRemoved' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookInstallationRepositoriesRemoved($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -234,7 +232,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4472,256 +4470,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookInstallationRepositoriesRemoved(array $payload): WebhookInstallationRepositoriesRemoved { $properties = []; @@ -4881,7 +4629,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4969,7 +4717,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhooksUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksUser($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookInstallationRepositoriesRemoved' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookInstallationRepositoriesRemoved($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -5105,7 +4852,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7468,97 +7215,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookInstallationRepositoriesRemoved(mixed $object): mixed { assert($object instanceof WebhookInstallationRepositoriesRemoved); @@ -7631,7 +7287,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/InstallationTarget.php b/clients/GitHub/src/Internal/Hydrator/WebHook/InstallationTarget.php index f726b4671b3..636209429a8 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/InstallationTarget.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/InstallationTarget.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookInstallationTargetRenamed; use ApiClients\Client\GitHub\Schema\WebhookInstallationTargetRenamed\Account; use ApiClients\Client\GitHub\Schema\WebhookInstallationTargetRenamed\Changes; @@ -70,7 +69,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -222,7 +220,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3979,256 +3977,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -4295,7 +4043,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4411,7 +4158,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $targetType = $object->targetType; @@ -6429,97 +6176,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/IssueComment.php b/clients/GitHub/src/Internal/Hydrator/WebHook/IssueComment.php index 9406e92b1b5..61e8e211395 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/IssueComment.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/IssueComment.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated; use ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Comment; use ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Comment\Reactions; @@ -92,7 +91,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssueComment' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssueComment($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssueComment\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssueComment⚡️Reactions($payload), @@ -282,7 +280,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6732,256 +6730,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted(array $payload): WebhookIssueCommentDeleted { $properties = []; @@ -7128,7 +6876,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -10258,7 +10006,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -15445,7 +15193,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhooksIssueComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssueComment($object), 'ApiClients\Client\GitHub\Schema\WebhooksIssueComment\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssueComment⚡️Reactions($object), @@ -15583,7 +15330,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -19102,97 +18849,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted(mixed $object): mixed { assert($object instanceof WebhookIssueCommentDeleted); @@ -19241,7 +18897,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -20961,7 +20617,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php index f67563a9c66..30984757cfe 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php @@ -12,7 +12,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookIssuesAssigned; use ApiClients\Client\GitHub\Schema\WebhookIssuesClosed; use ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue; @@ -110,7 +109,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\Assignee' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️Assignee($payload), @@ -426,7 +424,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6271,256 +6269,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed(array $payload): WebhookIssuesClosed { $properties = []; @@ -6647,7 +6395,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -9180,7 +8928,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -11733,7 +11481,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -14760,7 +14508,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -17528,7 +17276,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -20061,7 +19809,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -22614,7 +22362,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -25167,7 +24915,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -31607,7 +31355,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -34140,7 +33888,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -36693,7 +36441,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -40770,7 +40518,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -41190,7 +40938,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -41340,7 +41088,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -43873,7 +43621,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -44010,7 +43758,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\Assignee' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️Assignee($object), @@ -44288,7 +44035,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -47556,97 +47303,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed(mixed $object): mixed { assert($object instanceof WebhookIssuesClosed); @@ -47691,7 +47347,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -49142,7 +48798,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -50602,7 +50258,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -52309,7 +51965,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -53851,7 +53507,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -55302,7 +54958,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -56752,7 +56408,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -58212,7 +57868,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -61727,7 +61383,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -63178,7 +62834,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -64628,7 +64284,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -66741,7 +66397,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -66966,7 +66622,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -67016,7 +66672,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -68462,7 +68118,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Label.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Label.php index c65b9bb8ba9..d95a9ddabdd 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Label.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Label.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookLabelCreated; use ApiClients\Client\GitHub\Schema\WebhookLabelDeleted; use ApiClients\Client\GitHub\Schema\WebhookLabelEdited; @@ -70,7 +69,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookLabelDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookLabelDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookLabelEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookLabelEdited($payload), 'ApiClients\Client\GitHub\Schema\WebhookLabelEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookLabelEdited⚡️Changes($payload), @@ -208,7 +206,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3516,256 +3514,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookLabelDeleted(array $payload): WebhookLabelDeleted { $properties = []; @@ -3892,7 +3640,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4062,7 +3810,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4318,7 +4066,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookLabelDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookLabelDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookLabelEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookLabelEdited($object), 'ApiClients\Client\GitHub\Schema\WebhookLabelEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookLabelEdited⚡️Changes($object), @@ -4436,7 +4183,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6171,97 +5918,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookLabelDeleted(mixed $object): mixed { assert($object instanceof WebhookLabelDeleted); @@ -6306,7 +5962,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6365,7 +6021,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/MarketplacePurchase.php b/clients/GitHub/src/Internal/Hydrator/WebHook/MarketplacePurchase.php index 2418ac03bab..073b2cbc5b8 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/MarketplacePurchase.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/MarketplacePurchase.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookMarketplacePurchaseCancelled; use ApiClients\Client\GitHub\Schema\WebhookMarketplacePurchaseChanged; use ApiClients\Client\GitHub\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase; @@ -77,7 +76,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookMarketplacePurchaseChanged' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseChanged($payload), 'ApiClients\Client\GitHub\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseChanged⚡️PreviousMarketplacePurchase($payload), 'ApiClients\Client\GitHub\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase\Account' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseChanged⚡️PreviousMarketplacePurchase⚡️Account($payload), @@ -253,7 +251,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4077,256 +4075,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseChanged(array $payload): WebhookMarketplacePurchaseChanged { $properties = []; @@ -4484,7 +4232,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4971,7 +4719,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5458,7 +5206,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5945,7 +5693,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6037,7 +5785,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookMarketplacePurchaseChanged' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseChanged($object), 'ApiClients\Client\GitHub\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseChanged⚡️PreviousMarketplacePurchase($object), 'ApiClients\Client\GitHub\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase\Account' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseChanged⚡️PreviousMarketplacePurchase⚡️Account($object), @@ -6174,7 +5921,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8102,97 +7849,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMarketplacePurchaseChanged(mixed $object): mixed { assert($object instanceof WebhookMarketplacePurchaseChanged); @@ -8254,7 +7910,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8442,7 +8098,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8625,7 +8281,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8803,7 +8459,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Member.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Member.php index ce05784cea9..97267663e3a 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Member.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Member.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookMemberAdded; use ApiClients\Client\GitHub\Schema\WebhookMemberAdded\Changes; use ApiClients\Client\GitHub\Schema\WebhookMemberAdded\Changes\Permission; @@ -73,7 +72,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookMemberEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMemberEdited($payload), 'ApiClients\Client\GitHub\Schema\WebhookMemberEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMemberEdited⚡️Changes($payload), 'ApiClients\Client\GitHub\Schema\WebhookMemberEdited\Changes\OldPermission' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️OldPermission($payload), @@ -230,7 +228,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3811,256 +3809,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMemberEdited(array $payload): WebhookMemberEdited { $properties = []; @@ -4207,7 +3955,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4487,7 +4235,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4577,7 +4325,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookMemberEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMemberEdited($object), 'ApiClients\Client\GitHub\Schema\WebhookMemberEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMemberEdited⚡️Changes($object), 'ApiClients\Client\GitHub\Schema\WebhookMemberEdited\Changes\OldPermission' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️OldPermission($object), @@ -4703,7 +4450,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6618,97 +6365,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMemberEdited(mixed $object): mixed { assert($object instanceof WebhookMemberEdited); @@ -6762,7 +6418,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6878,7 +6534,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/MergeGroup.php b/clients/GitHub/src/Internal/Hydrator/WebHook/MergeGroup.php index 814a0d0fcdf..22ed745b872 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/MergeGroup.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/MergeGroup.php @@ -16,7 +16,6 @@ use ApiClients\Client\GitHub\Schema\SimpleCommit\Committer; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookMergeGroupChecksRequested; use ApiClients\Client\GitHub\Schema\WebhookMergeGroupDestroyed; use EventSauce\ObjectHydrator\IterableList; @@ -68,7 +67,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookMergeGroupDestroyed' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMergeGroupDestroyed($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -181,7 +179,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3532,256 +3530,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMergeGroupDestroyed(array $payload): WebhookMergeGroupDestroyed { $properties = []; @@ -3899,7 +3647,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3988,7 +3736,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookMergeGroupDestroyed' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMergeGroupDestroyed($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -4097,7 +3844,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5830,97 +5577,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMergeGroupDestroyed(mixed $object): mixed { assert($object instanceof WebhookMergeGroupDestroyed); @@ -5974,7 +5630,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Meta.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Meta.php index 60af3a2ba60..2d32f6740e6 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Meta.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Meta.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookMetaDeleted; use ApiClients\Client\GitHub\Schema\WebhookMetaDeleted\Hook; use ApiClients\Client\GitHub\Schema\WebhookMetaDeleted\Hook\Config; @@ -66,7 +65,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -209,7 +207,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3600,256 +3598,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3914,7 +3662,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4034,7 +3781,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5800,97 +5547,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Milestone.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Milestone.php index c0ced9b7c2b..94681344ed0 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Milestone.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Milestone.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookMilestoneClosed; use ApiClients\Client\GitHub\Schema\WebhookMilestoneCreated; use ApiClients\Client\GitHub\Schema\WebhookMilestoneDeleted; @@ -75,7 +74,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookMilestoneCreated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMilestoneCreated($payload), 'ApiClients\Client\GitHub\Schema\WebhooksMilestone3' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksMilestone3($payload), 'ApiClients\Client\GitHub\Schema\WebhooksMilestone3\Creator' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksMilestone3⚡️Creator($payload), @@ -217,7 +215,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3883,256 +3881,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMilestoneCreated(array $payload): WebhookMilestoneCreated { $properties = []; @@ -4259,7 +4007,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4863,7 +4611,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5033,7 +4781,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5352,7 +5100,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5440,7 +5188,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookMilestoneCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMilestoneCreated($object), 'ApiClients\Client\GitHub\Schema\WebhooksMilestone3' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksMilestone3($object), 'ApiClients\Client\GitHub\Schema\WebhooksMilestone3\Creator' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksMilestone3⚡️Creator($object), @@ -5557,7 +5304,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7501,97 +7248,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookMilestoneCreated(mixed $object): mixed { assert($object instanceof WebhookMilestoneCreated); @@ -7636,7 +7292,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7929,7 +7585,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7983,7 +7639,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8101,7 +7757,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/OrgBlock.php b/clients/GitHub/src/Internal/Hydrator/WebHook/OrgBlock.php index 822a4f039b0..4ebd199393b 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/OrgBlock.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/OrgBlock.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookOrgBlockBlocked; use ApiClients\Client\GitHub\Schema\WebhookOrgBlockUnblocked; use ApiClients\Client\GitHub\Schema\WebhooksUser; @@ -65,7 +64,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookOrgBlockUnblocked' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookOrgBlockUnblocked($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -198,7 +196,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3660,256 +3658,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookOrgBlockUnblocked(array $payload): WebhookOrgBlockUnblocked { $properties = []; @@ -4036,7 +3784,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4123,7 +3871,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookOrgBlockUnblocked' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookOrgBlockUnblocked($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -4236,7 +3983,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6103,97 +5850,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookOrgBlockUnblocked(mixed $object): mixed { assert($object instanceof WebhookOrgBlockUnblocked); @@ -6243,7 +5899,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Organization.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Organization.php index d7fe292dc09..0ea618ab1d0 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Organization.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Organization.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookOrganizationDeleted; use ApiClients\Client\GitHub\Schema\WebhookOrganizationMemberAdded; use ApiClients\Client\GitHub\Schema\WebhookOrganizationMemberInvited; @@ -75,7 +74,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookOrganizationMemberAdded' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookOrganizationMemberAdded($payload), 'ApiClients\Client\GitHub\Schema\WebhookOrganizationMemberInvited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookOrganizationMemberInvited($payload), 'ApiClients\Client\GitHub\Schema\WebhookOrganizationMemberInvited\Invitation' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookOrganizationMemberInvited⚡️Invitation($payload), @@ -216,7 +214,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3761,256 +3759,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookOrganizationMemberAdded(array $payload): WebhookOrganizationMemberAdded { $properties = []; @@ -4137,7 +3885,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4287,7 +4035,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5117,7 +4865,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5287,7 +5035,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5444,7 +5192,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookOrganizationMemberAdded' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookOrganizationMemberAdded($object), 'ApiClients\Client\GitHub\Schema\WebhookOrganizationMemberInvited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookOrganizationMemberInvited($object), 'ApiClients\Client\GitHub\Schema\WebhookOrganizationMemberInvited\Invitation' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookOrganizationMemberInvited⚡️Invitation($object), @@ -5565,7 +5312,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7461,97 +7208,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookOrganizationMemberAdded(mixed $object): mixed { assert($object instanceof WebhookOrganizationMemberAdded); @@ -7596,7 +7252,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7646,7 +7302,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $user = $object->user; @@ -8112,7 +7768,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8176,7 +7832,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Package.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Package.php index 5d57a77afc5..bd59e4ae53a 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Package.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Package.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookPackagePublished; use ApiClients\Client\GitHub\Schema\WebhookPackagePublished\Package\Owner; use ApiClients\Client\GitHub\Schema\WebhookPackagePublished\Package\PackageVersion; @@ -96,7 +95,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookPackageUpdated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPackageUpdated($payload), 'ApiClients\Client\GitHub\Schema\WebhookPackageUpdated\Package' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPackageUpdated⚡️Package($payload), 'ApiClients\Client\GitHub\Schema\WebhookPackageUpdated\Package\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️Owner($payload), @@ -251,7 +249,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5653,256 +5651,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPackageUpdated(array $payload): WebhookPackageUpdated { $properties = []; @@ -6029,7 +5777,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7888,7 +7636,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookPackageUpdated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPackageUpdated($object), 'ApiClients\Client\GitHub\Schema\WebhookPackageUpdated\Package' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPackageUpdated⚡️Package($object), 'ApiClients\Client\GitHub\Schema\WebhookPackageUpdated\Package\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️Owner($object), @@ -8008,7 +7755,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11007,97 +10754,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPackageUpdated(mixed $object): mixed { assert($object instanceof WebhookPackageUpdated); @@ -11142,7 +10798,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/PageBuild.php b/clients/GitHub/src/Internal/Hydrator/WebHook/PageBuild.php index f85133d0ad7..ef4e51a5ac9 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/PageBuild.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/PageBuild.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookPageBuild; use ApiClients\Client\GitHub\Schema\WebhookPageBuild\Build; use ApiClients\Client\GitHub\Schema\WebhookPageBuild\Build\Error; @@ -68,7 +67,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -200,7 +198,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3817,256 +3815,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -4132,7 +3880,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4239,7 +3986,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6166,97 +5913,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/PersonalAccessTokenRequest.php b/clients/GitHub/src/Internal/Hydrator/WebHook/PersonalAccessTokenRequest.php index 2333f97ed70..6c3cfe2c587 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/PersonalAccessTokenRequest.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/PersonalAccessTokenRequest.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\PersonalAccessTokenRequest\PermissionsUpgraded; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookPersonalAccessTokenRequestApproved; use ApiClients\Client\GitHub\Schema\WebhookPersonalAccessTokenRequestCancelled; use ApiClients\Client\GitHub\Schema\WebhookPersonalAccessTokenRequestCreated; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\PersonalAccessTokenRequest\PermissionsResult' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️PersonalAccessTokenRequest⚡️PermissionsResult($payload), 'ApiClients\Client\GitHub\Schema\EnterpriseWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($payload), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\GitHub\Schema\WebhookPersonalAccessTokenRequestCancelled' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPersonalAccessTokenRequestCancelled($payload), 'ApiClients\Client\GitHub\Schema\WebhookPersonalAccessTokenRequestCreated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPersonalAccessTokenRequestCreated($payload), @@ -166,7 +164,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1164,256 +1162,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Orga } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation(array $payload): SimpleInstallation { $properties = []; @@ -1541,7 +1289,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1671,7 +1419,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1801,7 +1549,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -2064,7 +1812,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\PersonalAccessTokenRequest\PermissionsResult' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️PersonalAccessTokenRequest⚡️PermissionsResult($object), 'ApiClients\Client\GitHub\Schema\EnterpriseWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($object), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\SimpleInstallation' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($object), 'ApiClients\Client\GitHub\Schema\WebhookPersonalAccessTokenRequestCancelled' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPersonalAccessTokenRequestCancelled($object), 'ApiClients\Client\GitHub\Schema\WebhookPersonalAccessTokenRequestCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPersonalAccessTokenRequestCreated($object), @@ -2157,7 +1904,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_organization: $result['organization'] = $organization; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $installation = $object->installation; @@ -2545,97 +2292,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation(mixed $object): mixed { assert($object instanceof SimpleInstallation); @@ -2676,7 +2332,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_organization: $result['organization'] = $organization; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $installation = $object->installation; @@ -2712,7 +2368,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_organization: $result['organization'] = $organization; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $installation = $object->installation; @@ -2753,7 +2409,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_enterprise: $result['enterprise'] = $enterprise; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $installation = $object->installation; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Ping.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Ping.php index 9fd68dc2838..16f3d6f201e 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Ping.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Ping.php @@ -13,7 +13,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookPing; use ApiClients\Client\GitHub\Schema\WebhookPing\Hook; use ApiClients\Client\GitHub\Schema\WebhookPing\Hook\Config; @@ -65,7 +64,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookPingFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPingFormEncoded($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -158,7 +156,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3517,256 +3515,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPingFormEncoded(array $payload): WebhookPingFormEncoded { $properties = []; @@ -3860,7 +3608,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookPingFormEncoded' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPingFormEncoded($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -3970,7 +3717,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $zen = $object->zen; @@ -5768,97 +5515,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPingFormEncoded(mixed $object): mixed { assert($object instanceof WebhookPingFormEncoded); diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Project.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Project.php index 06e302fcd20..ceb1039fb32 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Project.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Project.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookProjectClosed; use ApiClients\Client\GitHub\Schema\WebhookProjectCreated; use ApiClients\Client\GitHub\Schema\WebhookProjectDeleted; @@ -73,7 +72,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectCreated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectCreated($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectEdited($payload), @@ -212,7 +210,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3845,256 +3843,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectCreated(array $payload): WebhookProjectCreated { $properties = []; @@ -4221,7 +3969,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4371,7 +4119,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4541,7 +4289,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4810,7 +4558,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4898,7 +4646,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectCreated($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectEdited($object), @@ -5017,7 +4764,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6942,97 +6689,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectCreated(mixed $object): mixed { assert($object instanceof WebhookProjectCreated); @@ -7082,7 +6738,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7142,7 +6798,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7211,7 +6867,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7314,7 +6970,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectCard.php b/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectCard.php index ed8d2a8ddf4..27cde4baf60 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectCard.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectCard.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookProjectCardConverted; use ApiClients\Client\GitHub\Schema\WebhookProjectCardConverted\Changes; use ApiClients\Client\GitHub\Schema\WebhookProjectCardConverted\Changes\Note; @@ -75,7 +74,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectCardCreated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectCardCreated($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectCardDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectCardDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectCardDeleted\ProjectCard' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectCardDeleted⚡️ProjectCard($payload), @@ -239,7 +237,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3941,256 +3939,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectCardCreated(array $payload): WebhookProjectCardCreated { $properties = []; @@ -4317,7 +4065,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4467,7 +4215,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5058,7 +4806,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5297,7 +5045,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5877,7 +5625,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectCardCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectCardCreated($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectCardDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectCardDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectCardDeleted\ProjectCard' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectCardDeleted⚡️ProjectCard($object), @@ -6005,7 +5752,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7963,97 +7710,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectCardCreated(mixed $object): mixed { assert($object instanceof WebhookProjectCardCreated); @@ -8103,7 +7759,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8158,7 +7814,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8456,7 +8112,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8548,7 +8204,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectColumn.php b/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectColumn.php index 591b7108068..62acf543690 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectColumn.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectColumn.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookProjectColumnCreated; use ApiClients\Client\GitHub\Schema\WebhookProjectColumnDeleted; use ApiClients\Client\GitHub\Schema\WebhookProjectColumnEdited; @@ -69,7 +68,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectColumnDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectColumnDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectColumnEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectColumnEdited($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectColumnEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectColumnEdited⚡️Changes($payload), @@ -206,7 +204,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3536,256 +3534,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectColumnDeleted(array $payload): WebhookProjectColumnDeleted { $properties = []; @@ -3912,7 +3660,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4082,7 +3830,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4301,7 +4049,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4388,7 +4136,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectColumnDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectColumnDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectColumnEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectColumnEdited($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectColumnEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectColumnEdited⚡️Changes($object), @@ -4510,7 +4257,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6251,97 +5998,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectColumnDeleted(mixed $object): mixed { assert($object instanceof WebhookProjectColumnDeleted); @@ -6396,7 +6052,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6460,7 +6116,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6543,7 +6199,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectsV2.php b/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectsV2.php index cef5bcf437f..bac68f9aa4f 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectsV2.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectsV2.php @@ -7,7 +7,6 @@ use ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookProjectsV2ProjectClosed; use ApiClients\Client\GitHub\Schema\WebhookProjectsV2ProjectCreated; use ApiClients\Client\GitHub\Schema\WebhookProjectsV2ProjectDeleted; @@ -58,7 +57,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHub\Schema\ProjectsV2' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ProjectsV2($payload), 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2ProjectCreated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ProjectCreated($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2ProjectDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ProjectDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2ProjectEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ProjectEdited($payload), @@ -158,7 +156,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -824,256 +822,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Simp } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ProjectCreated(array $payload): WebhookProjectsV2ProjectCreated { $properties = []; @@ -1160,7 +908,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1270,7 +1018,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1400,7 +1148,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1773,7 +1521,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1833,7 +1581,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHub\Schema\ProjectsV2' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ProjectsV2($object), 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2ProjectCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ProjectCreated($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2ProjectDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ProjectDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2ProjectEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ProjectEdited($object), @@ -1931,7 +1678,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwo: $result['projects_v2'] = $projectsVTwo; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2169,97 +1916,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ProjectCreated(mixed $object): mixed { assert($object instanceof WebhookProjectsV2ProjectCreated); @@ -2286,7 +1942,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwo: $result['projects_v2'] = $projectsVTwo; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2318,7 +1974,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwo: $result['projects_v2'] = $projectsVTwo; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2354,7 +2010,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwo: $result['projects_v2'] = $projectsVTwo; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2526,7 +2182,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwo: $result['projects_v2'] = $projectsVTwo; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectsV2Item.php b/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectsV2Item.php index 8b89a6e5fc5..71637325850 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectsV2Item.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectsV2Item.php @@ -7,7 +7,6 @@ use ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookProjectsV2ItemArchived; use ApiClients\Client\GitHub\Schema\WebhookProjectsV2ItemConverted; use ApiClients\Client\GitHub\Schema\WebhookProjectsV2ItemConverted\Changes; @@ -63,7 +62,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHub\Schema\ProjectsV2Item' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ProjectsV2Item($payload), 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2ItemConverted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ItemConverted($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2ItemConverted\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2ItemConverted\Changes\ContentType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes⚡️ContentType($payload), @@ -184,7 +182,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -857,256 +855,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Simp } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ItemConverted(array $payload): WebhookProjectsV2ItemConverted { $properties = []; @@ -1213,7 +961,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1403,7 +1151,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1513,7 +1261,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1647,7 +1395,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1777,7 +1525,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1987,7 +1735,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -2049,7 +1797,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHub\Schema\ProjectsV2Item' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ProjectsV2Item($object), 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2ItemConverted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ItemConverted($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2ItemConverted\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2ItemConverted\Changes\ContentType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes⚡️ContentType($object), @@ -2152,7 +1899,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2409,97 +2156,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2ItemConverted(mixed $object): mixed { assert($object instanceof WebhookProjectsV2ItemConverted); @@ -2530,7 +2186,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2603,7 +2259,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2635,7 +2291,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2679,7 +2335,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2715,7 +2371,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2792,7 +2448,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectsV2StatusUpdate.php b/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectsV2StatusUpdate.php index 30194729022..39fe571e36e 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectsV2StatusUpdate.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/ProjectsV2StatusUpdate.php @@ -7,7 +7,6 @@ use ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookProjectsV2StatusUpdateCreated; use ApiClients\Client\GitHub\Schema\WebhookProjectsV2StatusUpdateDeleted; use ApiClients\Client\GitHub\Schema\WebhookProjectsV2StatusUpdateEdited; @@ -56,7 +55,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHub\Schema\ProjectsV2StatusUpdate' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ProjectsV2StatusUpdate($payload), 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2StatusUpdateDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2StatusUpdateDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2StatusUpdateEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2StatusUpdateEdited($payload), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2StatusUpdateEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2StatusUpdateEdited⚡️Changes($payload), @@ -154,7 +152,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -758,256 +756,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Simp } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2StatusUpdateDeleted(array $payload): WebhookProjectsV2StatusUpdateDeleted { $properties = []; @@ -1094,7 +842,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1224,7 +972,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1547,7 +1295,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHub\Schema\ProjectsV2StatusUpdate' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ProjectsV2StatusUpdate($object), 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2StatusUpdateDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2StatusUpdateDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2StatusUpdateEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2StatusUpdateEdited($object), 'ApiClients\Client\GitHub\Schema\WebhookProjectsV2StatusUpdateEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2StatusUpdateEdited⚡️Changes($object), @@ -1643,7 +1390,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwoStatusUpdate: $result['projects_v2_status_update'] = $projectsVTwoStatusUpdate; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -1872,97 +1619,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookProjectsV2StatusUpdateDeleted(mixed $object): mixed { assert($object instanceof WebhookProjectsV2StatusUpdateDeleted); @@ -1989,7 +1645,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwoStatusUpdate: $result['projects_v2_status_update'] = $projectsVTwoStatusUpdate; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2030,7 +1686,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_projectsVTwoStatusUpdate: $result['projects_v2_status_update'] = $projectsVTwoStatusUpdate; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Public_.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Public_.php index a84783f26e9..e0f6304dc76 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Public_.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Public_.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookPublic; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -163,7 +161,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3375,256 +3373,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3687,7 +3435,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3787,7 +3534,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5488,97 +5235,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequest.php b/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequest.php index 30341b3536c..78c3604ff23 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequest.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequest.php @@ -13,7 +13,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookPullRequestAssigned; use ApiClients\Client\GitHub\Schema\WebhookPullRequestAssigned\PullRequest\Assignee; use ApiClients\Client\GitHub\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge; @@ -140,7 +139,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestAutoMergeDisabled' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled($payload), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Links' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest⚡️Links($payload), @@ -669,7 +667,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -10379,256 +10377,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled(array $payload): WebhookPullRequestAutoMergeDisabled { $properties = []; @@ -10777,7 +10525,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -17197,7 +16945,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -23606,7 +23354,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -28107,7 +27855,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -28268,7 +28016,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -34688,7 +34436,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -41117,7 +40865,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -41536,7 +41284,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -47965,7 +47713,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -54470,7 +54218,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -60879,7 +60627,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -61040,7 +60788,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -61201,7 +60949,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -61362,7 +61110,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -61545,7 +61293,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -67974,7 +67722,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -74653,7 +74401,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -81062,7 +80810,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -89528,7 +89276,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestAutoMergeDisabled' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled($object), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Links' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest⚡️Links($object), @@ -90008,7 +89755,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -94977,97 +94724,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled(mixed $object): mixed { assert($object instanceof WebhookPullRequestAutoMergeDisabled); @@ -95118,7 +94774,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -98271,7 +97927,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -101416,7 +101072,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -103009,7 +102665,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -103067,7 +102723,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -106215,7 +105871,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -109369,7 +109025,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -109517,7 +109173,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -112671,7 +112327,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -115860,7 +115516,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -119020,7 +118676,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -119073,7 +118729,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -119126,7 +118782,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -119179,7 +118835,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -119238,7 +118894,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -122397,7 +122053,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -125732,7 +125388,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -128887,7 +128543,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequestReview.php b/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequestReview.php index 19e6d238c2f..cb4dcd94c67 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequestReview.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequestReview.php @@ -12,7 +12,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewDismissed; use ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewDismissed\PullRequest; use ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewDismissed\PullRequest\Assignee; @@ -121,7 +120,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewDismissed\Review\Links\Html' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links⚡️Html($payload), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewDismissed\Review\Links\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewDismissed\Review\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️User($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewEdited($payload), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Changes($payload), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Changes⚡️Body($payload), @@ -361,7 +359,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -9957,256 +9955,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewEdited(array $payload): WebhookPullRequestReviewEdited { $properties = []; @@ -10373,7 +10121,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -16842,7 +16590,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -28660,7 +28408,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewDismissed\Review\Links\Html' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links⚡️Html($object), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewDismissed\Review\Links\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewDismissed\Review\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️User($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewEdited($object), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Changes($object), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewEdited\Changes\Body' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Changes⚡️Body($object), @@ -28836,7 +28583,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_review: $result['review'] = $review; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -33628,97 +33375,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewEdited(mixed $object): mixed { assert($object instanceof WebhookPullRequestReviewEdited); @@ -33771,7 +33427,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_review: $result['review'] = $review; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -36847,7 +36503,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_review: $result['review'] = $review; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequestReviewComment.php b/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequestReviewComment.php index 1e720df9890..5a381e6ebe1 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequestReviewComment.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequestReviewComment.php @@ -12,7 +12,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewCommentCreated; use ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewCommentCreated\Comment; use ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links; @@ -124,7 +123,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewCommentDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhooksReviewComment' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksReviewComment($payload), 'ApiClients\Client\GitHub\Schema\WebhooksReviewComment\Links' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksReviewComment⚡️Links($payload), @@ -362,7 +360,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -10322,256 +10320,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted(array $payload): WebhookPullRequestReviewCommentDeleted { $properties = []; @@ -10718,7 +10466,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -17656,7 +17404,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -26841,7 +26589,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewCommentDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhooksReviewComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksReviewComment($object), 'ApiClients\Client\GitHub\Schema\WebhooksReviewComment\Links' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksReviewComment⚡️Links($object), @@ -27019,7 +26766,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -31963,97 +31710,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted(mixed $object): mixed { assert($object instanceof WebhookPullRequestReviewCommentDeleted); @@ -32102,7 +31758,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -35393,7 +35049,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequestReviewThread.php b/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequestReviewThread.php index 72dcf9e2443..19a2ebed714 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequestReviewThread.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/PullRequestReviewThread.php @@ -12,7 +12,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewThreadResolved; use ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewThreadResolved\PullRequest; use ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Assignee; @@ -112,7 +111,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewThreadResolved\Thread' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️Thread($payload), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewThreadUnresolved' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved($payload), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest($payload), @@ -285,7 +283,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -9264,256 +9262,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️Thread(array $payload): Thread { $properties = []; @@ -9681,7 +9429,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -16343,7 +16091,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewThreadResolved\Thread' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️Thread($object), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewThreadUnresolved' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved($object), 'ApiClients\Client\GitHub\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest($object), @@ -16486,7 +16233,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $thread = $object->thread; @@ -20950,97 +20697,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️Thread(mixed $object): mixed { assert($object instanceof Thread); @@ -21111,7 +20767,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $thread = $object->thread; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Push.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Push.php index 9eb52eb6cc6..027587f2bcc 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Push.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Push.php @@ -7,7 +7,7 @@ use ApiClients\Client\GitHub\Schema\EnterpriseWebhooks; use ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHub\Schema\SimpleInstallation; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; +use ApiClients\Client\GitHub\Schema\SimpleUser; use ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\CustomProperties; use ApiClients\Client\GitHub\Schema\WebhookPush; use ApiClients\Client\GitHub\Schema\WebhookPush\HeadCommit; @@ -65,7 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookPush\Repository\License' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPush⚡️Repository⚡️License($payload), 'ApiClients\Client\GitHub\Schema\WebhookPush\Repository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPush⚡️Repository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\WebhookPush\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPush⚡️Repository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️CustomProperties($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️License($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️Owner($payload), @@ -308,7 +308,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -2465,7 +2465,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(array $payload): SimpleUser { $properties = []; $missingFields = []; @@ -2701,17 +2701,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Simp after_starredAt: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new SimpleUserWebhooks(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -3176,7 +3176,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookPush\Repository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPush⚡️Repository⚡️License($object), 'ApiClients\Client\GitHub\Schema\WebhookPush\Repository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPush⚡️Repository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\WebhookPush\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookPush⚡️Repository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3333,7 +3333,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -4281,9 +4281,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(mixed $object): mixed { - assert($object instanceof SimpleUserWebhooks); + assert($object instanceof SimpleUser); $result = []; $name = $object->name; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/RegistryPackage.php b/clients/GitHub/src/Internal/Hydrator/WebHook/RegistryPackage.php index b7d92b47874..07cff816ecb 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/RegistryPackage.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/RegistryPackage.php @@ -18,7 +18,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookRegistryPackagePublished; use ApiClients\Client\GitHub\Schema\WebhookRegistryPackagePublished\RegistryPackage\Owner; use ApiClients\Client\GitHub\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion; @@ -96,7 +95,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookRegistryPackageUpdated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRegistryPackageUpdated($payload), 'ApiClients\Client\GitHub\Schema\WebhookRegistryPackageUpdated\RegistryPackage' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage($payload), 'ApiClients\Client\GitHub\Schema\WebhookRegistryPackageUpdated\RegistryPackage\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️Owner($payload), @@ -246,7 +244,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5558,256 +5556,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRegistryPackageUpdated(array $payload): WebhookRegistryPackageUpdated { $properties = []; @@ -5934,7 +5682,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7529,7 +7277,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookRegistryPackageUpdated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRegistryPackageUpdated($object), 'ApiClients\Client\GitHub\Schema\WebhookRegistryPackageUpdated\RegistryPackage' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage($object), 'ApiClients\Client\GitHub\Schema\WebhookRegistryPackageUpdated\RegistryPackage\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️Owner($object), @@ -7648,7 +7395,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -10492,97 +10239,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRegistryPackageUpdated(mixed $object): mixed { assert($object instanceof WebhookRegistryPackageUpdated); @@ -10632,7 +10288,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Release.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Release.php index 103b77be1ab..bb0ac326b0c 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Release.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Release.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookReleaseCreated; use ApiClients\Client\GitHub\Schema\WebhookReleaseDeleted; use ApiClients\Client\GitHub\Schema\WebhookReleaseEdited; @@ -79,7 +78,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookReleaseDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookReleaseDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookReleaseEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookReleaseEdited($payload), 'ApiClients\Client\GitHub\Schema\WebhookReleaseEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookReleaseEdited⚡️Changes($payload), @@ -227,7 +225,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4075,256 +4073,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookReleaseDeleted(array $payload): WebhookReleaseDeleted { $properties = []; @@ -4451,7 +4199,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4621,7 +4369,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4940,7 +4688,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5726,7 +5474,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6512,7 +6260,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6662,7 +6410,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6751,7 +6499,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookReleaseDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookReleaseDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookReleaseEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookReleaseEdited($object), 'ApiClients\Client\GitHub\Schema\WebhookReleaseEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookReleaseEdited⚡️Changes($object), @@ -6874,7 +6621,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8901,97 +8648,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookReleaseDeleted(mixed $object): mixed { assert($object instanceof WebhookReleaseDeleted); @@ -9036,7 +8692,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9095,7 +8751,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9218,7 +8874,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9599,7 +9255,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9980,7 +9636,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -10035,7 +9691,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Repository.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Repository.php index ce1f48a40be..3b2735d081e 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Repository.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Repository.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookRepositoryArchived; use ApiClients\Client\GitHub\Schema\WebhookRepositoryCreated; use ApiClients\Client\GitHub\Schema\WebhookRepositoryDeleted; @@ -79,7 +78,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryCreated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryCreated($payload), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryEdited($payload), @@ -212,7 +210,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3424,256 +3422,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryCreated(array $payload): WebhookRepositoryCreated { $properties = []; @@ -3780,7 +3528,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3910,7 +3658,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4060,7 +3808,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4409,7 +4157,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4539,7 +4287,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4689,7 +4437,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4947,7 +4695,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5626,7 +5374,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5712,7 +5460,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryCreated($object), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryEdited($object), @@ -5836,7 +5583,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7537,97 +7284,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryCreated(mixed $object): mixed { assert($object instanceof WebhookRepositoryCreated); @@ -7668,7 +7324,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7714,7 +7370,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7764,7 +7420,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7920,7 +7576,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7966,7 +7622,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8016,7 +7672,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8101,7 +7757,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8420,7 +8076,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryAdvisory.php b/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryAdvisory.php index 68845bfec65..776975d1235 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryAdvisory.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryAdvisory.php @@ -20,7 +20,6 @@ use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleRepository; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookRepositoryAdvisoryPublished; use ApiClients\Client\GitHub\Schema\WebhookRepositoryAdvisoryReported; use EventSauce\ObjectHydrator\IterableList; @@ -76,7 +75,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload), 'ApiClients\Client\GitHub\Schema\SimpleRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleRepository($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryAdvisoryReported' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryAdvisoryReported($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -209,7 +207,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4537,256 +4535,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Simp } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryAdvisoryReported(array $payload): WebhookRepositoryAdvisoryReported { $properties = []; @@ -4913,7 +4661,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5006,7 +4754,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object), 'ApiClients\Client\GitHub\Schema\SimpleRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleRepository($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryAdvisoryReported' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryAdvisoryReported($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -5119,7 +4866,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7322,97 +7069,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryAdvisoryReported(mixed $object): mixed { assert($object instanceof WebhookRepositoryAdvisoryReported); @@ -7462,7 +7118,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryDispatch.php b/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryDispatch.php index 3002265938f..a298f1dbeae 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryDispatch.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryDispatch.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookRepositoryDispatchSample; use ApiClients\Client\GitHub\Schema\WebhookRepositoryDispatchSample\ClientPayload; use EventSauce\ObjectHydrator\IterableList; @@ -63,7 +62,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryDispatchSample\ClientPayload' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryDispatchSample⚡️ClientPayload($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -207,7 +205,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3419,256 +3417,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryDispatchSample⚡️ClientPayload(array $payload): ClientPayload { $properties = []; @@ -3751,7 +3499,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3861,7 +3608,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5562,97 +5309,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryImport.php b/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryImport.php index e65c3c9b962..627fab727b5 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryImport.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryImport.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookRepositoryImport; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -163,7 +161,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3386,256 +3384,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3698,7 +3446,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3798,7 +3545,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $status = $object->status; @@ -5502,97 +5249,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryRuleset.php b/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryRuleset.php index 205940c4953..15c994970c6 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryRuleset.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryRuleset.php @@ -18,7 +18,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookRepositoryRulesetCreated; use ApiClients\Client\GitHub\Schema\WebhookRepositoryRulesetDeleted; use ApiClients\Client\GitHub\Schema\WebhookRepositoryRulesetEdited; @@ -77,7 +76,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryRuleset\Links' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryRuleset⚡️Links($payload), 'ApiClients\Client\GitHub\Schema\RepositoryRuleset\Links\Self_' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryRuleset⚡️Links⚡️Self_($payload), 'ApiClients\Client\GitHub\Schema\RepositoryRuleset\Links\Html' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryRuleset⚡️Links⚡️Html($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryRulesetDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryRulesetDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryRulesetEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryRulesetEdited($payload), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryRulesetEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryRulesetEdited⚡️Changes($payload), @@ -216,7 +214,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3742,256 +3740,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryRulesetDeleted(array $payload): WebhookRepositoryRulesetDeleted { $properties = []; @@ -4118,7 +3866,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4288,7 +4036,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4641,7 +4389,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryRuleset\Links' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryRuleset⚡️Links($object), 'ApiClients\Client\GitHub\Schema\RepositoryRuleset\Links\Self_' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryRuleset⚡️Links⚡️Self_($object), 'ApiClients\Client\GitHub\Schema\RepositoryRuleset\Links\Html' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryRuleset⚡️Links⚡️Html($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryRulesetDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryRulesetDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryRulesetEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryRulesetEdited($object), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryRulesetEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryRulesetEdited⚡️Changes($object), @@ -4760,7 +4507,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repositoryRuleset: $result['repository_ruleset'] = $repositoryRuleset; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6645,97 +6392,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryRulesetDeleted(mixed $object): mixed { assert($object instanceof WebhookRepositoryRulesetDeleted); @@ -6785,7 +6441,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repositoryRuleset: $result['repository_ruleset'] = $repositoryRuleset; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6849,7 +6505,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_changes: $result['changes'] = $changes; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryVulnerabilityAlert.php b/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryVulnerabilityAlert.php index ed6459084b0..1462b9b1b9a 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryVulnerabilityAlert.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/RepositoryVulnerabilityAlert.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookRepositoryVulnerabilityAlertCreate; use ApiClients\Client\GitHub\Schema\WebhookRepositoryVulnerabilityAlertDismiss; use ApiClients\Client\GitHub\Schema\WebhookRepositoryVulnerabilityAlertDismiss\Alert; @@ -70,7 +69,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryVulnerabilityAlertDismiss' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss($payload), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryVulnerabilityAlertDismiss\Alert' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss⚡️Alert($payload), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryVulnerabilityAlertDismiss\Alert\Dismisser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss⚡️Alert⚡️Dismisser($payload), @@ -209,7 +207,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3886,256 +3884,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss(array $payload): WebhookRepositoryVulnerabilityAlertDismiss { $properties = []; @@ -4262,7 +4010,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4888,7 +4636,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5038,7 +4786,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5591,7 +5339,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryVulnerabilityAlertDismiss' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss($object), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryVulnerabilityAlertDismiss\Alert' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss⚡️Alert($object), 'ApiClients\Client\GitHub\Schema\WebhookRepositoryVulnerabilityAlertDismiss\Alert\Dismisser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss⚡️Alert⚡️Dismisser($object), @@ -5705,7 +5452,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7667,97 +7414,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss(mixed $object): mixed { assert($object instanceof WebhookRepositoryVulnerabilityAlertDismiss); @@ -7802,7 +7458,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8111,7 +7767,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8161,7 +7817,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlert.php b/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlert.php index 3c87dde9628..d3a51d18a36 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlert.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlert.php @@ -15,7 +15,6 @@ use ApiClients\Client\GitHub\Schema\SecretScanningAlertWebhook; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertCreated; use ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertReopened; use ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertResolved; @@ -67,7 +66,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertReopened' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertReopened($payload), 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertResolved' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertResolved($payload), 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertValidated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertValidated($payload), @@ -202,7 +200,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3627,256 +3625,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertReopened(array $payload): WebhookSecretScanningAlertReopened { $properties = []; @@ -4003,7 +3751,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4153,7 +3901,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4303,7 +4051,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4390,7 +4138,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertReopened' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertReopened($object), 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertResolved' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertResolved($object), 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertValidated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertValidated($object), @@ -4505,7 +4252,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6344,97 +6091,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertReopened(mixed $object): mixed { assert($object instanceof WebhookSecretScanningAlertReopened); @@ -6484,7 +6140,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6539,7 +6195,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6594,7 +6250,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php b/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php index 1483414f190..b2c1b5d6e47 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php @@ -16,7 +16,6 @@ use ApiClients\Client\GitHub\Schema\SecretScanningLocation; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertLocationCreated; use ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertLocationCreatedFormEncoded; use EventSauce\ObjectHydrator\IterableList; @@ -67,7 +66,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertLocationCreatedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertLocationCreatedFormEncoded($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -200,7 +198,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3550,256 +3548,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertLocationCreatedFormEncoded(array $payload): WebhookSecretScanningAlertLocationCreatedFormEncoded { $properties = []; @@ -3893,7 +3641,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertLocationCreatedFormEncoded' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertLocationCreatedFormEncoded($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -4001,7 +3748,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5810,97 +5557,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertLocationCreatedFormEncoded(mixed $object): mixed { assert($object instanceof WebhookSecretScanningAlertLocationCreatedFormEncoded); diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/SecurityAdvisory.php b/clients/GitHub/src/Internal/Hydrator/WebHook/SecurityAdvisory.php index cd0adac1ed0..6568460078f 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/SecurityAdvisory.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/SecurityAdvisory.php @@ -17,7 +17,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookSecurityAdvisoryPublished; use ApiClients\Client\GitHub\Schema\WebhookSecurityAdvisoryUpdated; use ApiClients\Client\GitHub\Schema\WebhookSecurityAdvisoryWithdrawn; @@ -74,7 +73,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($payload), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookSecurityAdvisoryUpdated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecurityAdvisoryUpdated($payload), 'ApiClients\Client\GitHub\Schema\WebhookSecurityAdvisoryWithdrawn' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn($payload), 'ApiClients\Client\GitHub\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn⚡️SecurityAdvisory($payload), @@ -210,7 +208,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3784,256 +3782,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Cvss } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecurityAdvisoryUpdated(array $payload): WebhookSecurityAdvisoryUpdated { $properties = []; @@ -4160,7 +3908,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4310,7 +4058,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4622,7 +4370,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($object), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object), 'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookSecurityAdvisoryUpdated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecurityAdvisoryUpdated($object), 'ApiClients\Client\GitHub\Schema\WebhookSecurityAdvisoryWithdrawn' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn($object), 'ApiClients\Client\GitHub\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn⚡️SecurityAdvisory($object), @@ -4743,7 +4490,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6624,97 +6371,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecurityAdvisoryUpdated(mixed $object): mixed { assert($object instanceof WebhookSecurityAdvisoryUpdated); @@ -6769,7 +6425,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6829,7 +6485,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php b/clients/GitHub/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php index dc5714dbcb1..8beb381244c 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php @@ -19,7 +19,6 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookSecurityAndAnalysis; use ApiClients\Client\GitHub\Schema\WebhookSecurityAndAnalysis\Changes; use ApiClients\Client\GitHub\Schema\WebhookSecurityAndAnalysis\Changes\From; @@ -77,7 +76,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($payload), 'ApiClients\Client\GitHub\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\CodeOfConductSimple' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodeOfConductSimple($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\FullRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️FullRepository⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -198,7 +196,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3769,256 +3767,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Code } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️FullRepository⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -4089,7 +3837,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($object), 'ApiClients\Client\GitHub\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\CodeOfConductSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodeOfConductSimple($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4198,7 +3945,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5667,97 +5414,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Sponsorship.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Sponsorship.php index 6a5a4eb942a..3718a8b3fa6 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Sponsorship.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Sponsorship.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhooksChanges8; use ApiClients\Client\GitHub\Schema\WebhooksChanges8\Tier\From; use ApiClients\Client\GitHub\Schema\WebhookSponsorshipCancelled; @@ -76,7 +75,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhooksSponsorship' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksSponsorship($payload), 'ApiClients\Client\GitHub\Schema\WebhooksSponsorship\Maintainer' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksSponsorship⚡️Maintainer($payload), 'ApiClients\Client\GitHub\Schema\WebhooksSponsorship\Sponsor' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksSponsorship⚡️Sponsor($payload), @@ -203,7 +201,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3435,256 +3433,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksSponsorship(array $payload): WebhooksSponsorship { $properties = []; @@ -4758,7 +4506,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4928,7 +4676,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5158,7 +4906,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5339,7 +5087,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5705,7 +5453,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5811,7 +5559,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhooksSponsorship' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksSponsorship($object), 'ApiClients\Client\GitHub\Schema\WebhooksSponsorship\Maintainer' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksSponsorship⚡️Maintainer($object), 'ApiClients\Client\GitHub\Schema\WebhooksSponsorship\Sponsor' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksSponsorship⚡️Sponsor($object), @@ -5934,7 +5681,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sponsorship = $object->sponsorship; @@ -7639,97 +7386,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksSponsorship(mixed $object): mixed { assert($object instanceof WebhooksSponsorship); @@ -8352,7 +8008,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sponsorship = $object->sponsorship; @@ -8411,7 +8067,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sponsorship = $object->sponsorship; @@ -8502,7 +8158,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sponsorship = $object->sponsorship; @@ -8569,7 +8225,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sponsorship = $object->sponsorship; @@ -8697,7 +8353,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sponsorship = $object->sponsorship; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Star.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Star.php index edcb405e178..e97d446f672 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Star.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Star.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookStarCreated; use ApiClients\Client\GitHub\Schema\WebhookStarDeleted; use EventSauce\ObjectHydrator\IterableList; @@ -63,7 +62,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookStarDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookStarDeleted($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -176,7 +174,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3399,256 +3397,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookStarDeleted(array $payload): WebhookStarDeleted { $properties = []; @@ -3755,7 +3503,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3852,7 +3600,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookStarDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookStarDeleted($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -3956,7 +3703,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $starredAt = $object->starredAt; @@ -5665,97 +5412,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookStarDeleted(mixed $object): mixed { assert($object instanceof WebhookStarDeleted); @@ -5796,7 +5452,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $starredAt = $object->starredAt; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Status.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Status.php index 4681265bc3f..42dfb581f23 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Status.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Status.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookStatus; use ApiClients\Client\GitHub\Schema\WebhookStatus\Commit; use ApiClients\Client\GitHub\Schema\WebhookStatus\Commit\Author; @@ -75,7 +74,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -273,7 +271,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4536,256 +4534,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -4856,7 +4604,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4998,7 +4745,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sha = $object->sha; @@ -7270,97 +7017,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/SubIssues.php b/clients/GitHub/src/Internal/Hydrator/WebHook/SubIssues.php index 513f7b1f568..98cb4f4d7a1 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/SubIssues.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/SubIssues.php @@ -19,7 +19,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookSubIssuesParentIssueAdded; use ApiClients\Client\GitHub\Schema\WebhookSubIssuesParentIssueRemoved; use ApiClients\Client\GitHub\Schema\WebhookSubIssuesSubIssueAdded; @@ -77,7 +76,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookSubIssuesParentIssueRemoved' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSubIssuesParentIssueRemoved($payload), 'ApiClients\Client\GitHub\Schema\WebhookSubIssuesSubIssueAdded' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSubIssuesSubIssueAdded($payload), 'ApiClients\Client\GitHub\Schema\WebhookSubIssuesSubIssueRemoved' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSubIssuesSubIssueRemoved($payload), @@ -254,7 +252,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5672,256 +5670,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSubIssuesParentIssueRemoved(array $payload): WebhookSubIssuesParentIssueRemoved { $properties = []; @@ -6090,7 +5838,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6282,7 +6030,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6474,7 +6222,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6567,7 +6315,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookSubIssuesParentIssueRemoved' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSubIssuesParentIssueRemoved($object), 'ApiClients\Client\GitHub\Schema\WebhookSubIssuesSubIssueAdded' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSubIssuesSubIssueAdded($object), 'ApiClients\Client\GitHub\Schema\WebhookSubIssuesSubIssueRemoved' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSubIssuesSubIssueRemoved($object), @@ -6692,7 +6439,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9357,97 +9104,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSubIssuesParentIssueRemoved(mixed $object): mixed { assert($object instanceof WebhookSubIssuesParentIssueRemoved); @@ -9507,7 +9163,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9572,7 +9228,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9637,7 +9293,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Team.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Team.php index 3b854f74711..21e3dd1964b 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Team.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Team.php @@ -7,7 +7,7 @@ use ApiClients\Client\GitHub\Schema\EnterpriseWebhooks; use ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHub\Schema\SimpleInstallation; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; +use ApiClients\Client\GitHub\Schema\SimpleUser; use ApiClients\Client\GitHub\Schema\WebhooksTeam1; use ApiClients\Client\GitHub\Schema\WebhooksTeam1\Parent_; use ApiClients\Client\GitHub\Schema\WebhookTeamAddedToRepository; @@ -69,7 +69,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookTeamAddedToRepository\Repository\License' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookTeamAddedToRepository⚡️Repository⚡️License($payload), 'ApiClients\Client\GitHub\Schema\WebhookTeamAddedToRepository\Repository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookTeamAddedToRepository⚡️Repository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\WebhookTeamAddedToRepository\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookTeamAddedToRepository⚡️Repository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHub\Schema\WebhooksTeam1' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksTeam1($payload), 'ApiClients\Client\GitHub\Schema\WebhooksTeam1\Parent_' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksTeam1⚡️Parent_($payload), 'ApiClients\Client\GitHub\Schema\WebhookTeamCreated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookTeamCreated($payload), @@ -211,7 +211,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -2019,7 +2019,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(array $payload): SimpleUser { $properties = []; $missingFields = []; @@ -2255,17 +2255,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Simp after_starredAt: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new SimpleUserWebhooks(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -2708,7 +2708,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4301,7 +4301,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5914,7 +5914,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7876,7 +7876,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -9422,7 +9422,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookTeamAddedToRepository\Repository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookTeamAddedToRepository⚡️Repository⚡️License($object), 'ApiClients\Client\GitHub\Schema\WebhookTeamAddedToRepository\Repository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookTeamAddedToRepository⚡️Repository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\WebhookTeamAddedToRepository\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookTeamAddedToRepository⚡️Repository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHub\Schema\WebhooksTeam1' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksTeam1($object), 'ApiClients\Client\GitHub\Schema\WebhooksTeam1\Parent_' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksTeam1⚡️Parent_($object), 'ApiClients\Client\GitHub\Schema\WebhookTeamCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookTeamCreated($object), @@ -9560,7 +9560,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $team = $object->team; @@ -10317,9 +10317,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(mixed $object): mixed { - assert($object instanceof SimpleUserWebhooks); + assert($object instanceof SimpleUser); $result = []; $name = $object->name; @@ -10608,7 +10608,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $team = $object->team; @@ -11289,7 +11289,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $team = $object->team; @@ -11969,7 +11969,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $team = $object->team; @@ -12798,7 +12798,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $team = $object->team; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/TeamAdd.php b/clients/GitHub/src/Internal/Hydrator/WebHook/TeamAdd.php index 15c62060e00..ebf1db9ce76 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/TeamAdd.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/TeamAdd.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhooksTeam1; use ApiClients\Client\GitHub\Schema\WebhooksTeam1\Parent_; use ApiClients\Client\GitHub\Schema\WebhookTeamAdd; @@ -64,7 +63,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhooksTeam1' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksTeam1($payload), 'ApiClients\Client\GitHub\Schema\WebhooksTeam1\Parent_' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksTeam1⚡️Parent_($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), @@ -167,7 +165,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3399,256 +3397,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksTeam1(array $payload): WebhooksTeam1 { $properties = []; @@ -4044,7 +3792,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhooksTeam1' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksTeam1($object), 'ApiClients\Client\GitHub\Schema\WebhooksTeam1\Parent_' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksTeam1⚡️Parent_($object), default => throw new LogicException("No serialization defined for $className"), @@ -4146,7 +3893,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $team = $object->team; @@ -5851,97 +5598,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksTeam1(mixed $object): mixed { assert($object instanceof WebhooksTeam1); diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Watch.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Watch.php index 7acd4ed6068..5286442f139 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Watch.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Watch.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookWatchStarted; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -174,7 +172,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3386,256 +3384,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3698,7 +3446,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3801,7 +3548,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5502,97 +5249,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/WorkflowDispatch.php b/clients/GitHub/src/Internal/Hydrator/WebHook/WorkflowDispatch.php index a32cb361383..939a665678c 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/WorkflowDispatch.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/WorkflowDispatch.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookWorkflowDispatch; use ApiClients\Client\GitHub\Schema\WebhookWorkflowDispatch\Inputs; use EventSauce\ObjectHydrator\IterableList; @@ -63,7 +62,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookWorkflowDispatch\Inputs' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookWorkflowDispatch⚡️Inputs($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -196,7 +194,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3419,256 +3417,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookWorkflowDispatch⚡️Inputs(array $payload): Inputs { $properties = []; @@ -3751,7 +3499,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3863,7 +3610,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflow = $object->workflow; @@ -5567,97 +5314,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/WorkflowJob.php b/clients/GitHub/src/Internal/Hydrator/WebHook/WorkflowJob.php index 9003cc5173c..ea90858d27f 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/WorkflowJob.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/WorkflowJob.php @@ -17,7 +17,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookWorkflowJobCompleted; use ApiClients\Client\GitHub\Schema\WebhookWorkflowJobInProgress; use ApiClients\Client\GitHub\Schema\WebhookWorkflowJobQueued; @@ -69,7 +68,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhookWorkflowJobCompleted\WorkflowJob' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookWorkflowJobCompleted⚡️WorkflowJob($payload), 'ApiClients\Client\GitHub\Schema\Deployment' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Deployment($payload), 'ApiClients\Client\GitHub\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($payload), @@ -191,7 +189,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3443,256 +3441,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookWorkflowJobCompleted⚡️WorkflowJob(array $payload): \ApiClients\Client\GitHub\Schema\WebhookWorkflowJobCompleted\WorkflowJob { $properties = []; @@ -4617,7 +4365,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5059,7 +4807,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5501,7 +5249,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5899,7 +5647,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhookWorkflowJobCompleted\WorkflowJob' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookWorkflowJobCompleted⚡️WorkflowJob($object), 'ApiClients\Client\GitHub\Schema\Deployment' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Deployment($object), 'ApiClients\Client\GitHub\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($object), @@ -6012,7 +5759,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflowJob = $object->workflowJob; @@ -7726,97 +7473,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookWorkflowJobCompleted⚡️WorkflowJob(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookWorkflowJobCompleted\WorkflowJob); @@ -8242,7 +7898,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflowJob = $object->workflowJob; @@ -8432,7 +8088,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflowJob = $object->workflowJob; @@ -8622,7 +8278,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflowJob = $object->workflowJob; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/WorkflowRun.php b/clients/GitHub/src/Internal/Hydrator/WebHook/WorkflowRun.php index bdcc6ff1958..e45a82e2be8 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/WorkflowRun.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/WorkflowRun.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; -use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhooksWorkflow; use ApiClients\Client\GitHub\Schema\WebhookWorkflowRunCompleted; use ApiClients\Client\GitHub\Schema\WebhookWorkflowRunCompleted\WorkflowRun\Actor; @@ -72,7 +71,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHub\Schema\WebhooksWorkflow' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow($payload), 'ApiClients\Client\GitHub\Schema\WebhookWorkflowRunCompleted\WorkflowRun' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookWorkflowRunCompleted⚡️WorkflowRun($payload), 'ApiClients\Client\GitHub\Schema\WebhookWorkflowRunCompleted\WorkflowRun\Actor' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookWorkflowRunCompleted⚡️WorkflowRun⚡️Actor($payload), @@ -219,7 +217,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3471,256 +3469,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repo } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $properties['email'] = null; - goto after_email; - } - - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } - - $properties['avatarUrl'] = $value; - - after_avatarUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; - } - - $properties['starredAt'] = $value; - - after_starredAt: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow(array $payload): WebhooksWorkflow { $properties = []; @@ -6702,7 +6450,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -9607,7 +9355,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -12605,7 +12353,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHub\Schema\WebhooksWorkflow' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow($object), 'ApiClients\Client\GitHub\Schema\WebhookWorkflowRunCompleted\WorkflowRun' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookWorkflowRunCompleted⚡️WorkflowRun($object), 'ApiClients\Client\GitHub\Schema\WebhookWorkflowRunCompleted\WorkflowRun\Actor' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookWorkflowRunCompleted⚡️WorkflowRun⚡️Actor($object), @@ -12741,7 +12488,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflow = $object->workflow; @@ -14455,97 +14202,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $result = []; - - $name = $object->name; - - if ($name === null) { - goto after_name; - } - - after_name: $result['name'] = $name; - - $email = $object->email; - - if ($email === null) { - goto after_email; - } - - after_email: $result['email'] = $email; - - $login = $object->login; - after_login: $result['login'] = $login; - - $id = $object->id; - after_id: $result['id'] = $id; - - $nodeId = $object->nodeId; - after_nodeId: $result['node_id'] = $nodeId; - - $avatarUrl = $object->avatarUrl; - after_avatarUrl: $result['avatar_url'] = $avatarUrl; - - $gravatarId = $object->gravatarId; - - if ($gravatarId === null) { - goto after_gravatarId; - } - - after_gravatarId: $result['gravatar_id'] = $gravatarId; - - $url = $object->url; - after_url: $result['url'] = $url; - - $htmlUrl = $object->htmlUrl; - after_htmlUrl: $result['html_url'] = $htmlUrl; - - $followersUrl = $object->followersUrl; - after_followersUrl: $result['followers_url'] = $followersUrl; - - $followingUrl = $object->followingUrl; - after_followingUrl: $result['following_url'] = $followingUrl; - - $gistsUrl = $object->gistsUrl; - after_gistsUrl: $result['gists_url'] = $gistsUrl; - - $starredUrl = $object->starredUrl; - after_starredUrl: $result['starred_url'] = $starredUrl; - - $subscriptionsUrl = $object->subscriptionsUrl; - after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; - - $organizationsUrl = $object->organizationsUrl; - after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; - - $reposUrl = $object->reposUrl; - after_reposUrl: $result['repos_url'] = $reposUrl; - - $eventsUrl = $object->eventsUrl; - after_eventsUrl: $result['events_url'] = $eventsUrl; - - $receivedEventsUrl = $object->receivedEventsUrl; - after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; - - $type = $object->type; - after_type: $result['type'] = $type; - - $siteAdmin = $object->siteAdmin; - after_siteAdmin: $result['site_admin'] = $siteAdmin; - - $starredAt = $object->starredAt; - - if ($starredAt === null) { - goto after_starredAt; - } - - after_starredAt: $result['starred_at'] = $starredAt; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksWorkflow(mixed $object): mixed { assert($object instanceof WebhooksWorkflow); @@ -15872,7 +15528,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflow = $object->workflow; @@ -17176,7 +16832,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflow = $object->workflow; diff --git a/clients/GitHub/src/Internal/Hydrators.php b/clients/GitHub/src/Internal/Hydrators.php index cf3ad59d006..9525c5e502f 100644 --- a/clients/GitHub/src/Internal/Hydrators.php +++ b/clients/GitHub/src/Internal/Hydrators.php @@ -979,7 +979,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHub\\Schema\\SshSigningKey' => $this->getObjectMapperOperation🌀User🌀SshSigningKeys()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Users\\ListAttestations\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Users🌀Username🌀Attestations🌀SubjectDigest()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Hovercard' => $this->getObjectMapperOperation🌀Users🌀Username🌀Hovercard()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionConfigurationDisabled', '\\ApiClients\\Client\\GitHub\\Schema\\EnterpriseWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleInstallation', '\\ApiClients\\Client\\GitHub\\Schema\\OrganizationSimpleWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\TemplateRepository', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\TemplateRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\TemplateRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleUserWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionConfigurationEnabled' => $this->getObjectMapperWebHook🪝BranchProtectionConfiguration()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionConfigurationDisabled', '\\ApiClients\\Client\\GitHub\\Schema\\EnterpriseWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleInstallation', '\\ApiClients\\Client\\GitHub\\Schema\\OrganizationSimpleWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\TemplateRepository', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\TemplateRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\TemplateRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionConfigurationEnabled' => $this->getObjectMapperWebHook🪝BranchProtectionConfiguration()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksRule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AdminEnforced', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedActorNames', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedActorsOnly', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedDismissalActorsOnly', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LinearHistoryRequirementEnforcementLevel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LockBranchEnforcementLevel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LockAllowsForkSync', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\PullRequestReviewsEnforcementLevel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequireLastPushApproval', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequiredStatusChecks', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequiredStatusChecksEnforcementLevel' => $this->getObjectMapperWebHook🪝BranchProtectionRule()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCompleted', '\\ApiClients\\Client\\GitHub\\Schema\\CheckRunWithSimpleCheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleCheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\CheckRunWithSimpleCheckSuite\\Output', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCompletedFormEncoded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCreatedFormEncoded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRequestedAction', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRequestedAction\\RequestedAction', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRequestedActionFormEncoded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRerequested', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRerequestedFormEncoded' => $this->getObjectMapperWebHook🪝CheckRun()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit\\Committer', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit\\Committer', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit\\Committer' => $this->getObjectMapperWebHook🪝CheckSuite()->hydrateObject($className, $payload), @@ -1334,7 +1334,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHub\\Schema\\SshSigningKey' => $this->getObjectMapperOperation🌀User🌀SshSigningKeys()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Users\\ListAttestations\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Users🌀Username🌀Attestations🌀SubjectDigest()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Hovercard' => $this->getObjectMapperOperation🌀Users🌀Username🌀Hovercard()->serializeObject($object), - '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionConfigurationDisabled', '\\ApiClients\\Client\\GitHub\\Schema\\EnterpriseWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleInstallation', '\\ApiClients\\Client\\GitHub\\Schema\\OrganizationSimpleWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\TemplateRepository', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\TemplateRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\TemplateRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleUserWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionConfigurationEnabled' => $this->getObjectMapperWebHook🪝BranchProtectionConfiguration()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionConfigurationDisabled', '\\ApiClients\\Client\\GitHub\\Schema\\EnterpriseWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleInstallation', '\\ApiClients\\Client\\GitHub\\Schema\\OrganizationSimpleWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\TemplateRepository', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\TemplateRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\RepositoryWebhooks\\TemplateRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionConfigurationEnabled' => $this->getObjectMapperWebHook🪝BranchProtectionConfiguration()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksRule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AdminEnforced', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedActorNames', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedActorsOnly', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedDismissalActorsOnly', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LinearHistoryRequirementEnforcementLevel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LockBranchEnforcementLevel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LockAllowsForkSync', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\PullRequestReviewsEnforcementLevel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequireLastPushApproval', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequiredStatusChecks', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequiredStatusChecksEnforcementLevel' => $this->getObjectMapperWebHook🪝BranchProtectionRule()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCompleted', '\\ApiClients\\Client\\GitHub\\Schema\\CheckRunWithSimpleCheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleCheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\CheckRunWithSimpleCheckSuite\\Output', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCompletedFormEncoded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCreatedFormEncoded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRequestedAction', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRequestedAction\\RequestedAction', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRequestedActionFormEncoded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRerequested', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRerequestedFormEncoded' => $this->getObjectMapperWebHook🪝CheckRun()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit\\Committer', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit\\Committer', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit\\Committer' => $this->getObjectMapperWebHook🪝CheckSuite()->serializeObject($object), diff --git a/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertInstances.php b/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertInstances.php index 7f9258dd8b3..1a6a3a5ba2c 100644 --- a/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertInstances.php +++ b/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertInstances.php @@ -33,24 +33,27 @@ final class ListAlertInstances private int $alertNumber; /**The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. **/ private string $ref; + /**The number of the pull request for the results you want to list. **/ + private int $pr; /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; /**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $perPage; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts\AlertNumber\Instances $hydrator, string $owner, string $repo, int $alertNumber, string $ref, int $page = 1, int $perPage = 30) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts\AlertNumber\Instances $hydrator, string $owner, string $repo, int $alertNumber, string $ref, int $pr, int $page = 1, int $perPage = 30) { $this->owner = $owner; $this->repo = $repo; $this->alertNumber = $alertNumber; $this->ref = $ref; + $this->pr = $pr; $this->page = $page; $this->perPage = $perPage; } public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{alert_number}', '{ref}', '{page}', '{per_page}'], [$this->owner, $this->repo, $this->alertNumber, $this->ref, $this->page, $this->perPage], '/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances' . '?ref={ref}&page={page}&per_page={per_page}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{alert_number}', '{ref}', '{pr}', '{page}', '{per_page}'], [$this->owner, $this->repo, $this->alertNumber, $this->ref, $this->pr, $this->page, $this->perPage], '/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances' . '?ref={ref}&pr={pr}&page={page}&per_page={per_page}')); } /** @return Observable */ diff --git a/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertInstancesListing.php b/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertInstancesListing.php index a372b4fcf91..b118474c6d3 100644 --- a/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertInstancesListing.php +++ b/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertInstancesListing.php @@ -33,24 +33,27 @@ final class ListAlertInstancesListing private int $alertNumber; /**The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. **/ private string $ref; + /**The number of the pull request for the results you want to list. **/ + private int $pr; /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; /**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $perPage; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts\AlertNumber\Instances $hydrator, string $owner, string $repo, int $alertNumber, string $ref, int $page = 1, int $perPage = 30) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts\AlertNumber\Instances $hydrator, string $owner, string $repo, int $alertNumber, string $ref, int $pr, int $page = 1, int $perPage = 30) { $this->owner = $owner; $this->repo = $repo; $this->alertNumber = $alertNumber; $this->ref = $ref; + $this->pr = $pr; $this->page = $page; $this->perPage = $perPage; } public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{alert_number}', '{ref}', '{page}', '{per_page}'], [$this->owner, $this->repo, $this->alertNumber, $this->ref, $this->page, $this->perPage], '/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances' . '?ref={ref}&page={page}&per_page={per_page}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{alert_number}', '{ref}', '{pr}', '{page}', '{per_page}'], [$this->owner, $this->repo, $this->alertNumber, $this->ref, $this->pr, $this->page, $this->perPage], '/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances' . '?ref={ref}&pr={pr}&page={page}&per_page={per_page}')); } /** @return Observable */ diff --git a/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php b/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php index 2cb4e530b36..404df886f08 100644 --- a/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php +++ b/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php @@ -36,6 +36,8 @@ final class ListAlertsForRepo private string|null $toolGuid; /**The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. **/ private string $ref; + /**The number of the pull request for the results you want to list. **/ + private int $pr; /**If specified, only code scanning alerts with this state will be returned. **/ private string $state; /**If specified, only code scanning alerts with this severity will be returned. **/ @@ -49,13 +51,14 @@ final class ListAlertsForRepo /**The property by which to sort the results. **/ private string $sort; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') { $this->owner = $owner; $this->repo = $repo; $this->toolName = $toolName; $this->toolGuid = $toolGuid; $this->ref = $ref; + $this->pr = $pr; $this->state = $state; $this->severity = $severity; $this->page = $page; @@ -66,7 +69,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{pr}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->pr, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&pr={pr}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); } /** @return Observable|WithoutBody */ diff --git a/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepoListing.php b/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepoListing.php index 2d1f5c363ec..f4827c6747a 100644 --- a/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepoListing.php +++ b/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepoListing.php @@ -36,6 +36,8 @@ final class ListAlertsForRepoListing private string|null $toolGuid; /**The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. **/ private string $ref; + /**The number of the pull request for the results you want to list. **/ + private int $pr; /**If specified, only code scanning alerts with this state will be returned. **/ private string $state; /**If specified, only code scanning alerts with this severity will be returned. **/ @@ -49,13 +51,14 @@ final class ListAlertsForRepoListing /**The property by which to sort the results. **/ private string $sort; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') { $this->owner = $owner; $this->repo = $repo; $this->toolName = $toolName; $this->toolGuid = $toolGuid; $this->ref = $ref; + $this->pr = $pr; $this->state = $state; $this->severity = $severity; $this->page = $page; @@ -66,7 +69,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{pr}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->pr, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&pr={pr}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); } /** @return Observable|WithoutBody */ diff --git a/clients/GitHub/src/Internal/Operation/CodeScanning/ListRecentAnalyses.php b/clients/GitHub/src/Internal/Operation/CodeScanning/ListRecentAnalyses.php index 927c5126444..6f1acf9aa41 100644 --- a/clients/GitHub/src/Internal/Operation/CodeScanning/ListRecentAnalyses.php +++ b/clients/GitHub/src/Internal/Operation/CodeScanning/ListRecentAnalyses.php @@ -33,6 +33,8 @@ final class ListRecentAnalyses private string $toolName; /**The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. **/ private string|null $toolGuid; + /**The number of the pull request for the results you want to list. **/ + private int $pr; /**The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. **/ private string $ref; /**Filter analyses belonging to the same SARIF upload. **/ @@ -46,12 +48,13 @@ final class ListRecentAnalyses /**The property by which to sort the results. **/ private string $sort; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Analyses $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Analyses $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, int $pr, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') { $this->owner = $owner; $this->repo = $repo; $this->toolName = $toolName; $this->toolGuid = $toolGuid; + $this->pr = $pr; $this->ref = $ref; $this->sarifId = $sarifId; $this->page = $page; @@ -62,7 +65,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{sarif_id}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->sarifId, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/analyses' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&sarif_id={sarif_id}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{pr}', '{ref}', '{sarif_id}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->pr, $this->ref, $this->sarifId, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/analyses' . '?tool_name={tool_name}&tool_guid={tool_guid}&pr={pr}&ref={ref}&sarif_id={sarif_id}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); } /** @return Observable */ diff --git a/clients/GitHub/src/Internal/Operation/CodeScanning/ListRecentAnalysesListing.php b/clients/GitHub/src/Internal/Operation/CodeScanning/ListRecentAnalysesListing.php index 6fa29461f80..7e18a6d190a 100644 --- a/clients/GitHub/src/Internal/Operation/CodeScanning/ListRecentAnalysesListing.php +++ b/clients/GitHub/src/Internal/Operation/CodeScanning/ListRecentAnalysesListing.php @@ -33,6 +33,8 @@ final class ListRecentAnalysesListing private string $toolName; /**The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. **/ private string|null $toolGuid; + /**The number of the pull request for the results you want to list. **/ + private int $pr; /**The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. **/ private string $ref; /**Filter analyses belonging to the same SARIF upload. **/ @@ -46,12 +48,13 @@ final class ListRecentAnalysesListing /**The property by which to sort the results. **/ private string $sort; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Analyses $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Analyses $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, int $pr, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') { $this->owner = $owner; $this->repo = $repo; $this->toolName = $toolName; $this->toolGuid = $toolGuid; + $this->pr = $pr; $this->ref = $ref; $this->sarifId = $sarifId; $this->page = $page; @@ -62,7 +65,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{sarif_id}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->sarifId, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/analyses' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&sarif_id={sarif_id}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{pr}', '{ref}', '{sarif_id}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->pr, $this->ref, $this->sarifId, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/analyses' . '?tool_name={tool_name}&tool_guid={tool_guid}&pr={pr}&ref={ref}&sarif_id={sarif_id}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); } /** @return Observable */ diff --git a/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignment.php b/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignment.php index f4ecd391ec1..f27a77a8242 100644 --- a/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignment.php +++ b/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignment.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $assignmentId, int $page = 1, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignment($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage); diff --git a/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php b/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php index bb233ae63b7..7a21c50e075 100644 --- a/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php +++ b/clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $assignmentId, int $page = 1, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignmentListing($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage); diff --git a/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertInstances.php b/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertInstances.php index 7261ae85a2a..8128ba07ec3 100644 --- a/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertInstances.php +++ b/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertInstances.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $owner, string $repo, int $alertNumber, string $ref, int $page = 1, int $perPage = 30): iterable + /** @return iterable */ + public function call(string $owner, string $repo, int $alertNumber, string $ref, int $pr, int $page = 1, int $perPage = 30): iterable { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListAlertInstances($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber, $ref, $page, $perPage); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListAlertInstances($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber, $ref, $pr, $page, $perPage); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertInstancesListing.php b/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertInstancesListing.php index fc08e962bdf..8f44eafaf0b 100644 --- a/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertInstancesListing.php +++ b/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertInstancesListing.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $owner, string $repo, int $alertNumber, string $ref, int $page = 1, int $perPage = 30): iterable + /** @return iterable */ + public function call(string $owner, string $repo, int $alertNumber, string $ref, int $pr, int $page = 1, int $perPage = 30): iterable { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListAlertInstancesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber, $ref, $page, $perPage); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListAlertInstancesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber, $ref, $pr, $page, $perPage); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php b/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php index 8e1972c55a1..9fe078d98ff 100644 --- a/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php +++ b/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php @@ -25,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|WithoutBody */ - public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody + /** @return iterable|WithoutBody */ + public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $state, $severity, $page, $perPage, $direction, $sort); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $pr, $state, $severity, $page, $perPage, $direction, $sort); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|WithoutBody { return $operation->createResponse($response); diff --git a/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php b/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php index 5a09caac3ca..8c9a1040bf3 100644 --- a/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php +++ b/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php @@ -25,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|WithoutBody */ - public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody + /** @return iterable|WithoutBody */ + public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $state, $severity, $page, $perPage, $direction, $sort); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $pr, $state, $severity, $page, $perPage, $direction, $sort); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|WithoutBody { return $operation->createResponse($response); diff --git a/clients/GitHub/src/Internal/Operator/CodeScanning/ListRecentAnalyses.php b/clients/GitHub/src/Internal/Operator/CodeScanning/ListRecentAnalyses.php index 291074d275d..b28edddf017 100644 --- a/clients/GitHub/src/Internal/Operator/CodeScanning/ListRecentAnalyses.php +++ b/clients/GitHub/src/Internal/Operator/CodeScanning/ListRecentAnalyses.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable + /** @return iterable */ + public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, int $pr, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListRecentAnalyses($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $sarifId, $page, $perPage, $direction, $sort); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListRecentAnalyses($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $pr, $ref, $sarifId, $page, $perPage, $direction, $sort); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHub/src/Internal/Operator/CodeScanning/ListRecentAnalysesListing.php b/clients/GitHub/src/Internal/Operator/CodeScanning/ListRecentAnalysesListing.php index e7634b716a4..7d94b9da5c7 100644 --- a/clients/GitHub/src/Internal/Operator/CodeScanning/ListRecentAnalysesListing.php +++ b/clients/GitHub/src/Internal/Operator/CodeScanning/ListRecentAnalysesListing.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable + /** @return iterable */ + public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, int $pr, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListRecentAnalysesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $sarifId, $page, $perPage, $direction, $sort); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListRecentAnalysesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $pr, $ref, $sarifId, $page, $perPage, $direction, $sort); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHub/src/Internal/Router/Get/Classroom.php b/clients/GitHub/src/Internal/Router/Get/Classroom.php index 13668912cbd..fd45a1e6161 100644 --- a/clients/GitHub/src/Internal/Router/Get/Classroom.php +++ b/clients/GitHub/src/Internal/Router/Get/Classroom.php @@ -71,7 +71,7 @@ public function getAClassroom(array $params): \ApiClients\Client\GitHub\Schema\C return $operator->call($arguments['classroom_id']); } - /** @return iterable */ + /** @return Observable */ public function listAcceptedAssignmentsForAnAssignment(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/CodeScanning.php b/clients/GitHub/src/Internal/Router/Get/CodeScanning.php index 2b5058334fb..49350577318 100644 --- a/clients/GitHub/src/Internal/Router/Get/CodeScanning.php +++ b/clients/GitHub/src/Internal/Router/Get/CodeScanning.php @@ -102,7 +102,7 @@ public function listAlertsForOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['before'], $arguments['after'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForRepo(array $params): iterable|WithoutBody { $arguments = []; @@ -136,6 +136,12 @@ public function listAlertsForRepo(array $params): iterable|WithoutBody $arguments['ref'] = $params['ref']; unset($params['ref']); + if (array_key_exists('pr', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pr'); + } + + $arguments['pr'] = $params['pr']; + unset($params['pr']); if (array_key_exists('state', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: state'); } @@ -174,10 +180,10 @@ public function listAlertsForRepo(array $params): iterable|WithoutBody unset($params['sort']); $operator = new Internal\Operator\CodeScanning\ListAlertsForRepo($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['pr'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); } - /** @return Observable */ + /** @return iterable */ public function listRecentAnalyses(array $params): iterable { $arguments = []; @@ -205,6 +211,12 @@ public function listRecentAnalyses(array $params): iterable $arguments['tool_guid'] = $params['tool_guid']; unset($params['tool_guid']); + if (array_key_exists('pr', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pr'); + } + + $arguments['pr'] = $params['pr']; + unset($params['pr']); if (array_key_exists('ref', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: ref'); } @@ -243,7 +255,7 @@ public function listRecentAnalyses(array $params): iterable unset($params['sort']); $operator = new Internal\Operator\CodeScanning\ListRecentAnalyses($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Analyses()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['sarif_id'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['pr'], $arguments['ref'], $arguments['sarif_id'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); } /** @return */ @@ -369,7 +381,7 @@ public function getSarif(array $params): CodeScanningSarifsStatus|WithoutBody return $operator->call($arguments['owner'], $arguments['repo'], $arguments['sarif_id']); } - /** @return Observable */ + /** @return iterable */ public function listAlertInstances(array $params): iterable { $arguments = []; @@ -397,6 +409,12 @@ public function listAlertInstances(array $params): iterable $arguments['ref'] = $params['ref']; unset($params['ref']); + if (array_key_exists('pr', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pr'); + } + + $arguments['pr'] = $params['pr']; + unset($params['pr']); if (array_key_exists('page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: page'); } @@ -411,7 +429,7 @@ public function listAlertInstances(array $params): iterable unset($params['per_page']); $operator = new Internal\Operator\CodeScanning\ListAlertInstances($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts🌀AlertNumber🌀Instances()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['alert_number'], $arguments['ref'], $arguments['page'], $arguments['per_page']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['alert_number'], $arguments['ref'], $arguments['pr'], $arguments['page'], $arguments['per_page']); } /** @return */ diff --git a/clients/GitHub/src/Internal/Router/Get/Eight.php b/clients/GitHub/src/Internal/Router/Get/Eight.php index 830ad5893a6..3ff2f255253 100644 --- a/clients/GitHub/src/Internal/Router/Get/Eight.php +++ b/clients/GitHub/src/Internal/Router/Get/Eight.php @@ -35,7 +35,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody */ + /** @return |Observable|Observable|Observable|Observable|iterable|Observable|WithoutBody */ public function call(string $call, array $params, array $pathChunks): PackageVersion|iterable|TeamRepository|WithoutBody|OidcCustomSubRepo|Ok|Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|WorkflowUsage|ProtectedBranchAdminEnforced|ProtectedBranchPullRequestReview|StatusCheckPolicy|BranchRestrictionPolicy|CodeScanningCodeqlDatabase|CodeScanningVariantAnalysis|DeploymentStatus|DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\Response\ApplicationJson\Ok|DeploymentProtectionRule|ActionsPublicKey|ActionsSecret|ActionsVariable|HookDelivery|PullRequestReview { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/Four.php b/clients/GitHub/src/Internal/Router/Get/Four.php index 9ce7e79d810..7c40facd4ed 100644 --- a/clients/GitHub/src/Internal/Router/Get/Four.php +++ b/clients/GitHub/src/Internal/Router/Get/Four.php @@ -34,7 +34,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|iterable|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 */ + /** @return |Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): WebhookConfig|iterable|Installation|WithoutBody|GistSimple|GitignoreTemplate|MarketplacePurchase|Thread|Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|InteractionLimitResponse|One|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|Codespace|GpgKey|Key|Migration|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/Six.php b/clients/GitHub/src/Internal/Router/Get/Six.php index e60a802fe22..feccd59c5b4 100644 --- a/clients/GitHub/src/Internal/Router/Get/Six.php +++ b/clients/GitHub/src/Internal/Router/Get/Six.php @@ -74,7 +74,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): Ok|iterable|ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|TeamRepository|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Classroom.php b/clients/GitHub/src/Internal/Router/List/Classroom.php index ca3e16477da..2c3679a9896 100644 --- a/clients/GitHub/src/Internal/Router/List/Classroom.php +++ b/clients/GitHub/src/Internal/Router/List/Classroom.php @@ -20,7 +20,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable */ + /** @return Observable */ public function listAcceptedAssignmentsForAnAssignmentListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/List/CodeScanning.php b/clients/GitHub/src/Internal/Router/List/CodeScanning.php index b4f1adafa6d..9fa4ac77a36 100644 --- a/clients/GitHub/src/Internal/Router/List/CodeScanning.php +++ b/clients/GitHub/src/Internal/Router/List/CodeScanning.php @@ -102,7 +102,7 @@ public function listAlertsForOrgListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForRepoListing(array $params): iterable|WithoutBody { $arguments = []; @@ -136,6 +136,12 @@ public function listAlertsForRepoListing(array $params): iterable|WithoutBody $arguments['ref'] = $params['ref']; unset($params['ref']); + if (array_key_exists('pr', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pr'); + } + + $arguments['pr'] = $params['pr']; + unset($params['pr']); if (array_key_exists('state', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: state'); } @@ -175,7 +181,7 @@ public function listAlertsForRepoListing(array $params): iterable|WithoutBody $arguments['page'] = 1; do { $operator = new Internal\Operator\CodeScanning\ListAlertsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort'])]; + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['pr'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort'])]; yield from $items; @@ -183,7 +189,7 @@ public function listAlertsForRepoListing(array $params): iterable|WithoutBody } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ public function listRecentAnalysesListing(array $params): iterable { $arguments = []; @@ -211,6 +217,12 @@ public function listRecentAnalysesListing(array $params): iterable $arguments['tool_guid'] = $params['tool_guid']; unset($params['tool_guid']); + if (array_key_exists('pr', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pr'); + } + + $arguments['pr'] = $params['pr']; + unset($params['pr']); if (array_key_exists('ref', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: ref'); } @@ -250,7 +262,7 @@ public function listRecentAnalysesListing(array $params): iterable $arguments['page'] = 1; do { $operator = new Internal\Operator\CodeScanning\ListRecentAnalysesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Analyses()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['sarif_id'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort'])]; + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['pr'], $arguments['ref'], $arguments['sarif_id'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort'])]; yield from $items; @@ -258,7 +270,7 @@ public function listRecentAnalysesListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ public function listAlertInstancesListing(array $params): iterable { $arguments = []; @@ -286,6 +298,12 @@ public function listAlertInstancesListing(array $params): iterable $arguments['ref'] = $params['ref']; unset($params['ref']); + if (array_key_exists('pr', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pr'); + } + + $arguments['pr'] = $params['pr']; + unset($params['pr']); if (array_key_exists('page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: page'); } @@ -301,7 +319,7 @@ public function listAlertInstancesListing(array $params): iterable $arguments['page'] = 1; do { $operator = new Internal\Operator\CodeScanning\ListAlertInstancesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts🌀AlertNumber🌀Instances()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['alert_number'], $arguments['ref'], $arguments['page'], $arguments['per_page'])]; + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['alert_number'], $arguments['ref'], $arguments['pr'], $arguments['page'], $arguments['per_page'])]; yield from $items; diff --git a/clients/GitHub/src/Internal/Router/List/Eight.php b/clients/GitHub/src/Internal/Router/List/Eight.php index b0d21bfe73a..a4051aecbaf 100644 --- a/clients/GitHub/src/Internal/Router/List/Eight.php +++ b/clients/GitHub/src/Internal/Router/List/Eight.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|WithoutBody */ + /** @return Observable|Observable|iterable|Observable|WithoutBody */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Four.php b/clients/GitHub/src/Internal/Router/List/Four.php index ec44d6e3f8e..45048521c93 100644 --- a/clients/GitHub/src/Internal/Router/List/Four.php +++ b/clients/GitHub/src/Internal/Router/List/Four.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return iterable|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 */ + /** @return Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Six.php b/clients/GitHub/src/Internal/Router/List/Six.php index e2afcb66c84..061084af6f7 100644 --- a/clients/GitHub/src/Internal/Router/List/Six.php +++ b/clients/GitHub/src/Internal/Router/List/Six.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|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|iterable|WithoutBody|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Operation/Classroom.php b/clients/GitHub/src/Operation/Classroom.php index 57715ef90f5..c95a6a33ac1 100644 --- a/clients/GitHub/src/Operation/Classroom.php +++ b/clients/GitHub/src/Operation/Classroom.php @@ -20,13 +20,13 @@ public function getAnAssignment(int $assignmentId): ClassroomAssignment return $this->operators->classroom👷GetAnAssignment()->call($assignmentId); } - /** @return iterable */ + /** @return Observable */ public function listAcceptedAssignmentsForAnAssignment(int $assignmentId, int $page, int $perPage): iterable { return $this->operators->classroom👷ListAcceptedAssignmentsForAnAssignment()->call($assignmentId, $page, $perPage); } - /** @return iterable */ + /** @return Observable */ public function listAcceptedAssignmentsForAnAssignmentListing(int $assignmentId, int $page, int $perPage): iterable { return $this->operators->classroom👷ListAcceptedAssignmentsForAnAssignmentListing()->call($assignmentId, $page, $perPage); diff --git a/clients/GitHub/src/Operation/CodeScanning.php b/clients/GitHub/src/Operation/CodeScanning.php index 0035d10dcf4..9011723eb6d 100644 --- a/clients/GitHub/src/Operation/CodeScanning.php +++ b/clients/GitHub/src/Operation/CodeScanning.php @@ -37,16 +37,16 @@ public function listAlertsForOrgListing(string $org, string $toolName, string|nu return $this->operators->codeScanning👷ListAlertsForOrgListing()->call($org, $toolName, $toolGuid, $before, $after, $state, $severity, $page, $perPage, $direction, $sort); } - /** @return Observable|WithoutBody */ - public function listAlertsForRepo(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody + /** @return iterable|WithoutBody */ + public function listAlertsForRepo(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody { - return $this->operators->codeScanning👷ListAlertsForRepo()->call($owner, $repo, $toolName, $toolGuid, $ref, $state, $severity, $page, $perPage, $direction, $sort); + return $this->operators->codeScanning👷ListAlertsForRepo()->call($owner, $repo, $toolName, $toolGuid, $ref, $pr, $state, $severity, $page, $perPage, $direction, $sort); } - /** @return Observable|WithoutBody */ - public function listAlertsForRepoListing(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody + /** @return iterable|WithoutBody */ + public function listAlertsForRepoListing(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody { - return $this->operators->codeScanning👷ListAlertsForRepoListing()->call($owner, $repo, $toolName, $toolGuid, $ref, $state, $severity, $page, $perPage, $direction, $sort); + return $this->operators->codeScanning👷ListAlertsForRepoListing()->call($owner, $repo, $toolName, $toolGuid, $ref, $pr, $state, $severity, $page, $perPage, $direction, $sort); } /** @return */ @@ -61,28 +61,28 @@ public function updateAlert(string $owner, string $repo, int $alertNumber, array return $this->operators->codeScanning👷UpdateAlert()->call($owner, $repo, $alertNumber, $params); } - /** @return Observable */ - public function listAlertInstances(string $owner, string $repo, int $alertNumber, string $ref, int $page, int $perPage): iterable + /** @return iterable */ + public function listAlertInstances(string $owner, string $repo, int $alertNumber, string $ref, int $pr, int $page, int $perPage): iterable { - return $this->operators->codeScanning👷ListAlertInstances()->call($owner, $repo, $alertNumber, $ref, $page, $perPage); + return $this->operators->codeScanning👷ListAlertInstances()->call($owner, $repo, $alertNumber, $ref, $pr, $page, $perPage); } - /** @return Observable */ - public function listAlertInstancesListing(string $owner, string $repo, int $alertNumber, string $ref, int $page, int $perPage): iterable + /** @return iterable */ + public function listAlertInstancesListing(string $owner, string $repo, int $alertNumber, string $ref, int $pr, int $page, int $perPage): iterable { - return $this->operators->codeScanning👷ListAlertInstancesListing()->call($owner, $repo, $alertNumber, $ref, $page, $perPage); + return $this->operators->codeScanning👷ListAlertInstancesListing()->call($owner, $repo, $alertNumber, $ref, $pr, $page, $perPage); } - /** @return Observable */ - public function listRecentAnalyses(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page, int $perPage, string $direction, string $sort): iterable + /** @return iterable */ + public function listRecentAnalyses(string $owner, string $repo, string $toolName, string|null $toolGuid, int $pr, string $ref, string $sarifId, int $page, int $perPage, string $direction, string $sort): iterable { - return $this->operators->codeScanning👷ListRecentAnalyses()->call($owner, $repo, $toolName, $toolGuid, $ref, $sarifId, $page, $perPage, $direction, $sort); + return $this->operators->codeScanning👷ListRecentAnalyses()->call($owner, $repo, $toolName, $toolGuid, $pr, $ref, $sarifId, $page, $perPage, $direction, $sort); } - /** @return Observable */ - public function listRecentAnalysesListing(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page, int $perPage, string $direction, string $sort): iterable + /** @return iterable */ + public function listRecentAnalysesListing(string $owner, string $repo, string $toolName, string|null $toolGuid, int $pr, string $ref, string $sarifId, int $page, int $perPage, string $direction, string $sort): iterable { - return $this->operators->codeScanning👷ListRecentAnalysesListing()->call($owner, $repo, $toolName, $toolGuid, $ref, $sarifId, $page, $perPage, $direction, $sort); + return $this->operators->codeScanning👷ListRecentAnalysesListing()->call($owner, $repo, $toolName, $toolGuid, $pr, $ref, $sarifId, $page, $perPage, $direction, $sort); } /** @return */ diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index fae031631df..f89747722a6 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -148,11 +148,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /assignments/{assignment_id}/accepted_assignments') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /assignments/{assignment_id}/accepted_assignments') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /assignments/{assignment_id}/grades') { @@ -2204,11 +2204,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/alerts') { - return $this->typeResolver->resolve('Observable|WithoutBody'); + return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'LIST /repos/{owner}/{repo}/code-scanning/alerts') { - return $this->typeResolver->resolve('Observable|WithoutBody'); + return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}') { @@ -2220,19 +2220,19 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/analyses') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /repos/{owner}/{repo}/code-scanning/analyses') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}') { diff --git a/clients/GitHub/src/Schema/OrgRulesetConditions.php b/clients/GitHub/src/Schema/OrgRulesetConditions.php index 2413bf4f6b6..a3b3880b42f 100644 --- a/clients/GitHub/src/Schema/OrgRulesetConditions.php +++ b/clients/GitHub/src/Schema/OrgRulesetConditions.php @@ -248,10 +248,12 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." + "description": "Conditions for an organization ruleset.\\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\\nThe push rulesets conditions object does not require the `ref_name` property." }'; public const SCHEMA_TITLE = 'Organization ruleset conditions'; - public const SCHEMA_DESCRIPTION = 'Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.'; + public const SCHEMA_DESCRIPTION = 'Conditions for an organization ruleset. +The branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties. +The push rulesets conditions object does not require the `ref_name` property.'; public const SCHEMA_EXAMPLE_DATA = '[]'; public function __construct() diff --git a/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php index 335eb090573..1896be4a7f6 100644 --- a/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php @@ -45,8 +45,7 @@ "items": { "title": "Repository Ruleset Bypass Actor", "required": [ - "actor_type", - "bypass_mode" + "actor_type" ], "type": "object", "properties": { @@ -74,7 +73,8 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + "default": "always" } }, "description": "An actor that can bypass rules in a ruleset" @@ -323,7 +323,7 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." + "description": "Conditions for an organization ruleset.\\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\\nThe push rulesets conditions object does not require the `ref_name` property." }, "rules": { "type": "array", @@ -1170,7 +1170,9 @@ * target: The target of the ruleset * enforcement: The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise). * bypassActors: The actors that can bypass the rules in this ruleset - * conditions: Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties. + * conditions: Conditions for an organization ruleset. + The branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties. + The push rulesets conditions object does not require the `ref_name` property. * rules: An array of rules within the ruleset. */ public function __construct(public string $name, public string|null $target, public string $enforcement, #[MapFrom('bypass_actors')] diff --git a/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php index dcd88e2bdad..12d07de14b8 100644 --- a/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php @@ -44,8 +44,7 @@ "items": { "title": "Repository Ruleset Bypass Actor", "required": [ - "actor_type", - "bypass_mode" + "actor_type" ], "type": "object", "properties": { @@ -73,7 +72,8 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + "default": "always" } }, "description": "An actor that can bypass rules in a ruleset" diff --git a/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php index c2c77735054..f8337d02753 100644 --- a/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php @@ -40,8 +40,7 @@ "items": { "title": "Repository Ruleset Bypass Actor", "required": [ - "actor_type", - "bypass_mode" + "actor_type" ], "type": "object", "properties": { @@ -69,7 +68,8 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + "default": "always" } }, "description": "An actor that can bypass rules in a ruleset" @@ -318,7 +318,7 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." + "description": "Conditions for an organization ruleset.\\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\\nThe push rulesets conditions object does not require the `ref_name` property." }, "rules": { "type": "array", @@ -1165,7 +1165,9 @@ * target: The target of the ruleset * enforcement: The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise). * bypassActors: The actors that can bypass the rules in this ruleset - * conditions: Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties. + * conditions: Conditions for an organization ruleset. + The branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties. + The push rulesets conditions object does not require the `ref_name` property. * rules: An array of rules within the ruleset. */ public function __construct(public string|null $name, public string|null $target, public string|null $enforcement, #[MapFrom('bypass_actors')] diff --git a/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php index 36ae7d3bf30..60fed2f72f8 100644 --- a/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php @@ -39,8 +39,7 @@ "items": { "title": "Repository Ruleset Bypass Actor", "required": [ - "actor_type", - "bypass_mode" + "actor_type" ], "type": "object", "properties": { @@ -68,7 +67,8 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + "default": "always" } }, "description": "An actor that can bypass rules in a ruleset" diff --git a/clients/GitHub/src/Schema/RepositoryRuleset.php b/clients/GitHub/src/Schema/RepositoryRuleset.php index 8f3e12f06e8..bc0d31c01ae 100644 --- a/clients/GitHub/src/Schema/RepositoryRuleset.php +++ b/clients/GitHub/src/Schema/RepositoryRuleset.php @@ -63,8 +63,7 @@ "items": { "title": "Repository Ruleset Bypass Actor", "required": [ - "actor_type", - "bypass_mode" + "actor_type" ], "type": "object", "properties": { @@ -92,7 +91,8 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + "default": "always" } }, "description": "An actor that can bypass rules in a ruleset" @@ -408,7 +408,7 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." + "description": "Conditions for an organization ruleset.\\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\\nThe push rulesets conditions object does not require the `ref_name` property." } ] }, diff --git a/clients/GitHub/src/Schema/RepositoryRulesetBypassActor.php b/clients/GitHub/src/Schema/RepositoryRulesetBypassActor.php index 64260bcdcf0..d422c55da8d 100644 --- a/clients/GitHub/src/Schema/RepositoryRulesetBypassActor.php +++ b/clients/GitHub/src/Schema/RepositoryRulesetBypassActor.php @@ -11,8 +11,7 @@ public const SCHEMA_JSON = '{ "title": "Repository Ruleset Bypass Actor", "required": [ - "actor_type", - "bypass_mode" + "actor_type" ], "type": "object", "properties": { @@ -40,7 +39,8 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + "default": "always" } }, "description": "An actor that can bypass rules in a ruleset" @@ -56,12 +56,12 @@ /** * actorId: The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories. * actorType: The type of actor that can bypass a ruleset. - * bypassMode: When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. + * bypassMode: When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. */ public function __construct(#[MapFrom('actor_id')] public int|null $actorId, #[MapFrom('actor_type')] public string $actorType, #[MapFrom('bypass_mode')] - public string $bypassMode,) + public string|null $bypassMode,) { } } diff --git a/clients/GitHub/src/Schema/SimpleUserWebhooks.php b/clients/GitHub/src/Schema/SimpleUserWebhooks.php deleted file mode 100644 index 68917b604cc..00000000000 --- a/clients/GitHub/src/Schema/SimpleUserWebhooks.php +++ /dev/null @@ -1,216 +0,0 @@ -prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertInstancesListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['page'] = 1; $data['per_page'] = 8; @@ -57,9 +58,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 1, 8); + $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 2, 1, 8); foreach ($result as $item) { } } @@ -74,13 +75,14 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertInstancesListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['page'] = 1; $data['per_page'] = 8; @@ -100,9 +102,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 1, 8); + $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 2, 1, 8); foreach ($result as $item) { } } @@ -117,13 +119,14 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertInstancesListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['page'] = 1; $data['per_page'] = 8; @@ -143,9 +146,9 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 1, 8); + $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 2, 1, 8); foreach ($result as $item) { } } diff --git a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertInstancesTest.php b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertInstancesTest.php index 58a8b00db61..bf3823cc2de 100644 --- a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertInstancesTest.php +++ b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertInstancesTest.php @@ -31,13 +31,14 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['page'] = 1; $data['per_page'] = 8; @@ -55,9 +56,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 1, 8); + $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 2, 1, 8); } /** @test */ @@ -70,13 +71,14 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['page'] = 1; $data['per_page'] = 8; @@ -94,9 +96,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 1, 8); + $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 2, 1, 8); } /** @test */ @@ -109,13 +111,14 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['page'] = 1; $data['per_page'] = 8; @@ -133,8 +136,8 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 1, 8); + $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 2, 1, 8); } } diff --git a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoListingTest.php b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoListingTest.php index aa210b81637..87201863178 100644 --- a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoListingTest.php +++ b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoListingTest.php @@ -31,7 +31,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,6 +39,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -62,9 +63,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -79,7 +80,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -87,6 +88,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -110,9 +112,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -127,7 +129,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -135,6 +137,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -158,9 +161,9 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -174,7 +177,7 @@ public function call_httpCode_304_empty(): void $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -182,6 +185,7 @@ public function call_httpCode_304_empty(): void $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -204,9 +208,9 @@ public function operations_httpCode_304_empty(): void $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); foreach ($result as $item) { diff --git a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoTest.php b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoTest.php index bd0d80aefde..bb04b7c832f 100644 --- a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoTest.php +++ b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoTest.php @@ -31,7 +31,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,6 +39,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -60,9 +61,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -75,7 +76,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -83,6 +84,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -104,9 +106,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -119,7 +121,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -127,6 +129,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -148,9 +151,9 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -162,7 +165,7 @@ public function call_httpCode_304_empty(): void $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -170,6 +173,7 @@ public function call_httpCode_304_empty(): void $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -190,9 +194,9 @@ public function operations_httpCode_304_empty(): void $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListRecentAnalysesListingTest.php b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListRecentAnalysesListingTest.php index 50f1df5ae21..f484eb7af76 100644 --- a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListRecentAnalysesListingTest.php +++ b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListRecentAnalysesListingTest.php @@ -31,13 +31,14 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListRecentAnalysesListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['tool_name'] = 'generated'; $data['tool_guid'] = null; + $data['pr'] = 2; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; $data['page'] = 1; @@ -61,9 +62,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -78,13 +79,14 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListRecentAnalysesListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['tool_name'] = 'generated'; $data['tool_guid'] = null; + $data['pr'] = 2; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; $data['page'] = 1; @@ -108,9 +110,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -125,13 +127,14 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListRecentAnalysesListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['tool_name'] = 'generated'; $data['tool_guid'] = null; + $data['pr'] = 2; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; $data['page'] = 1; @@ -155,9 +158,9 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } diff --git a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListRecentAnalysesTest.php b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListRecentAnalysesTest.php index 01196c0b1da..d16a1491ebe 100644 --- a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListRecentAnalysesTest.php +++ b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListRecentAnalysesTest.php @@ -31,13 +31,14 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['tool_name'] = 'generated'; $data['tool_guid'] = null; + $data['pr'] = 2; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; $data['page'] = 1; @@ -59,9 +60,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -74,13 +75,14 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['tool_name'] = 'generated'; $data['tool_guid'] = null; + $data['pr'] = 2; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; $data['page'] = 1; @@ -102,9 +104,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -117,13 +119,14 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['tool_name'] = 'generated'; $data['tool_guid'] = null; + $data['pr'] = 2; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; $data['page'] = 1; @@ -145,8 +148,8 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); } } diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index 1a2c10a65da..32cff377a8e 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -43,8 +43,8 @@ function authHeader(): string assertType('', $client->call('POST /applications/{client_id}/token/scoped')); assertType('', $client->call('GET /apps/{app_slug}')); assertType('', $client->call('GET /assignments/{assignment_id}')); -assertType('iterable', $client->call('GET /assignments/{assignment_id}/accepted_assignments')); -assertType('iterable', $client->call('LIST /assignments/{assignment_id}/accepted_assignments')); +assertType('Observable', $client->call('GET /assignments/{assignment_id}/accepted_assignments')); +assertType('Observable', $client->call('LIST /assignments/{assignment_id}/accepted_assignments')); assertType('Observable', $client->call('GET /assignments/{assignment_id}/grades')); assertType('Observable', $client->call('GET /classrooms')); assertType('Observable', $client->call('LIST /classrooms')); @@ -557,14 +557,14 @@ function authHeader(): string assertType('', $client->call('GET /repos/{owner}/{repo}/check-suites/{check_suite_id}')); assertType('', $client->call('GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs')); assertType('', $client->call('POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest')); -assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts')); -assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts')); +assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts')); +assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts')); assertType('', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); -assertType('Observable', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances')); -assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances')); -assertType('Observable', $client->call('GET /repos/{owner}/{repo}/code-scanning/analyses')); -assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/code-scanning/analyses')); +assertType('iterable', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances')); +assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances')); +assertType('iterable', $client->call('GET /repos/{owner}/{repo}/code-scanning/analyses')); +assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/code-scanning/analyses')); assertType('', $client->call('GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/code-scanning/codeql/databases')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index d9c8949108a..5b638814c8e 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -22845,6 +22845,7 @@ paths: - "$ref": "#/components/parameters/page" - "$ref": "#/components/parameters/per-page" - "$ref": "#/components/parameters/git-ref" + - "$ref": "#/components/parameters/pr-alias" - "$ref": "#/components/parameters/direction" - name: sort description: The property by which to sort the results. @@ -23013,6 +23014,7 @@ paths: - "$ref": "#/components/parameters/page" - "$ref": "#/components/parameters/per-page" - "$ref": "#/components/parameters/git-ref" + - "$ref": "#/components/parameters/pr-alias" responses: '200': description: Response @@ -23068,6 +23070,7 @@ paths: - "$ref": "#/components/parameters/tool-guid" - "$ref": "#/components/parameters/page" - "$ref": "#/components/parameters/per-page" + - "$ref": "#/components/parameters/pr-alias" - name: ref in: query description: The Git reference for the analyses you want to list. The `ref` @@ -73958,7 +73961,6 @@ components: description: An actor that can bypass rules in a ruleset required: - actor_type - - bypass_mode properties: actor_id: type: @@ -73981,10 +73983,12 @@ components: type: string description: When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` - is not applicable for the `DeployKey` actor type. + is not applicable for the `DeployKey` actor type. Also, `pull_request` + is only applicable to branch rulesets. enum: - always - pull_request + default: always repository-ruleset-conditions: title: Repository ruleset conditions for ref names type: object @@ -74096,9 +74100,10 @@ components: org-ruleset-conditions: title: Organization ruleset conditions type: object - description: Conditions for an organization ruleset. The conditions object should - contain both `repository_name` and `ref_name` properties or both `repository_id` - and `ref_name` properties. + description: |- + Conditions for an organization ruleset. + The branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties. + The push rulesets conditions object does not require the `ref_name` property. oneOf: - type: object title: repository_name_and_ref_name @@ -91626,123 +91631,6 @@ components: - watchers_count - created_at - updated_at - simple-user-webhooks: - title: Simple User - description: The GitHub user that triggered the event. This property is included - in every webhook payload. - type: object - properties: - name: - type: - - string - - 'null' - email: - type: - - string - - 'null' - login: - type: string - examples: - - octocat - id: - type: integer - examples: - - 1 - node_id: - type: string - examples: - - MDQ6VXNlcjE= - avatar_url: - type: string - format: uri - examples: - - https://github.com/images/error/octocat_happy.gif - gravatar_id: - type: - - string - - 'null' - examples: - - 41d064eb2195891e12d0413f63227ea7 - url: - type: string - format: uri - examples: - - https://api.github.com/users/octocat - html_url: - type: string - format: uri - examples: - - https://github.com/octocat - followers_url: - type: string - format: uri - examples: - - https://api.github.com/users/octocat/followers - following_url: - type: string - examples: - - https://api.github.com/users/octocat/following{/other_user} - gists_url: - type: string - examples: - - https://api.github.com/users/octocat/gists{/gist_id} - starred_url: - type: string - examples: - - https://api.github.com/users/octocat/starred{/owner}{/repo} - subscriptions_url: - type: string - format: uri - examples: - - https://api.github.com/users/octocat/subscriptions - organizations_url: - type: string - format: uri - examples: - - https://api.github.com/users/octocat/orgs - repos_url: - type: string - format: uri - examples: - - https://api.github.com/users/octocat/repos - events_url: - type: string - examples: - - https://api.github.com/users/octocat/events{/privacy} - received_events_url: - type: string - format: uri - examples: - - https://api.github.com/users/octocat/received_events - type: - type: string - examples: - - User - site_admin: - type: boolean - starred_at: - type: string - examples: - - '"2020-07-09T00:17:55Z"' - required: - - avatar_url - - events_url - - followers_url - - following_url - - gists_url - - gravatar_id - - html_url - - id - - node_id - - login - - organizations_url - - received_events_url - - repos_url - - site_admin - - starred_url - - subscriptions_url - - type - - url webhooks_rule: title: branch protection rule description: The branch protection rule. Includes a `name` and all the [branch @@ -100707,7 +100595,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -100729,7 +100617,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -100753,7 +100641,7 @@ components: rule: "$ref": "#/components/schemas/webhooks_rule" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - rule @@ -100778,7 +100666,7 @@ components: rule: "$ref": "#/components/schemas/webhooks_rule" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - rule @@ -100914,7 +100802,7 @@ components: rule: "$ref": "#/components/schemas/webhooks_rule" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - rule @@ -100937,7 +100825,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - check_run - repository @@ -100970,7 +100858,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - check_run - repository @@ -101011,7 +100899,7 @@ components: user. type: string sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - check_run @@ -101045,7 +100933,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - check_run - repository @@ -101672,7 +101560,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - check_suite @@ -102288,7 +102176,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - check_suite @@ -102898,7 +102786,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - check_suite @@ -103149,7 +103037,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -103423,7 +103311,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -103641,7 +103529,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -103919,7 +103807,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -104138,7 +104026,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -104317,7 +104205,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -104335,7 +104223,7 @@ components: enum: - created comment: - description: The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment) + description: The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. type: object properties: @@ -104519,7 +104407,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - comment @@ -104556,7 +104444,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - ref - ref_type @@ -104582,7 +104470,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - definition @@ -104609,7 +104497,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - definition @@ -104630,7 +104518,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - definition @@ -104651,7 +104539,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" new_property_values: type: array description: The new custom property values for the repository. @@ -104691,7 +104579,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - ref - ref_type @@ -104717,7 +104605,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -104742,7 +104630,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -104767,7 +104655,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -104792,7 +104680,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -104817,7 +104705,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -104842,7 +104730,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -104867,7 +104755,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -104892,7 +104780,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - key @@ -104917,7 +104805,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - key @@ -105428,7 +105316,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow: "$ref": "#/components/schemas/webhooks_workflow" workflow_run: @@ -106073,7 +105961,7 @@ components: installation: "$ref": "#/components/schemas/simple-installation" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" webhook-deployment-review-approved: type: object properties: @@ -106096,7 +105984,7 @@ components: reviewers: "$ref": "#/components/schemas/webhooks_reviewers" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" since: type: string workflow_job_run: @@ -106762,7 +106650,7 @@ components: reviewers: "$ref": "#/components/schemas/webhooks_reviewers" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" since: type: string workflow_job_run: @@ -107504,7 +107392,7 @@ components: - User - Team sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" since: type: string workflow_job_run: @@ -109220,7 +109108,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow: "$ref": "#/components/schemas/webhooks_workflow" workflow_run: @@ -109855,7 +109743,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -109925,7 +109813,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -109951,7 +109839,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -109978,7 +109866,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - comment @@ -110006,7 +109894,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - comment @@ -110046,7 +109934,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -110073,7 +109961,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -110098,7 +109986,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -110140,7 +110028,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -110167,7 +110055,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -110193,7 +110081,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -110218,7 +110106,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -110243,7 +110131,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -110278,7 +110166,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -110302,7 +110190,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -110329,7 +110217,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -110355,7 +110243,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -110380,7 +110268,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -111075,7 +110963,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - forkee - repository @@ -111089,7 +110977,7 @@ components: enum: - revoked sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - sender @@ -111143,7 +111031,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - pages - repository @@ -111169,7 +111057,7 @@ components: requester: "$ref": "#/components/schemas/webhooks_user" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -111196,7 +111084,7 @@ components: type: - 'null' sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -111223,7 +111111,7 @@ components: type: - 'null' sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -111271,7 +111159,7 @@ components: requester: "$ref": "#/components/schemas/webhooks_user" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -111329,7 +111217,7 @@ components: requester: "$ref": "#/components/schemas/webhooks_user" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -111360,7 +111248,7 @@ components: type: - 'null' sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -111482,7 +111370,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" target_type: type: string required: @@ -111513,7 +111401,7 @@ components: type: - 'null' sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -112865,7 +112753,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -114050,7 +113938,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -115240,7 +115128,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -115270,7 +115158,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -116359,7 +116247,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -117295,7 +117183,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -118239,7 +118127,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -119204,7 +119092,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -120149,7 +120037,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -121091,7 +120979,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -122033,7 +121921,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -124367,7 +124255,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -124392,7 +124280,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -125337,7 +125225,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -126756,7 +126644,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -126785,7 +126673,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -126812,7 +126700,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -127752,7 +127640,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -127777,7 +127665,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -127802,7 +127690,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - label @@ -127826,7 +127714,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - label @@ -127882,7 +127770,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - label @@ -127911,7 +127799,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - effective_date @@ -128025,7 +127913,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - effective_date @@ -128137,7 +128025,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - effective_date @@ -128249,7 +128137,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - effective_date @@ -128278,7 +128166,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - effective_date @@ -128330,7 +128218,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - member @@ -128379,7 +128267,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -128405,7 +128293,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - member @@ -128630,7 +128518,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - merge_group @@ -128659,7 +128547,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - merge_group @@ -128789,7 +128677,7 @@ components: - type: 'null' - "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - hook_id @@ -128813,7 +128701,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - milestone @@ -128838,7 +128726,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - milestone @@ -128863,7 +128751,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - milestone @@ -128919,7 +128807,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -128945,7 +128833,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - milestone @@ -128970,7 +128858,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - blocked_user @@ -128995,7 +128883,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - blocked_user @@ -129020,7 +128908,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - organization @@ -129044,7 +128932,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - membership @@ -129185,7 +129073,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" user: "$ref": "#/components/schemas/webhooks_user" required: @@ -129212,7 +129100,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - membership @@ -129245,7 +129133,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - organization @@ -129882,7 +129770,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - package @@ -130331,7 +130219,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - package @@ -130459,7 +130347,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - id - build @@ -130480,7 +130368,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" installation: "$ref": "#/components/schemas/simple-installation" required: @@ -130504,7 +130392,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" installation: "$ref": "#/components/schemas/simple-installation" required: @@ -130528,7 +130416,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" installation: "$ref": "#/components/schemas/simple-installation" required: @@ -130551,7 +130439,7 @@ components: enterprise: "$ref": "#/components/schemas/enterprise-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" installation: "$ref": "#/components/schemas/simple-installation" required: @@ -130642,7 +130530,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" zen: description: Random string of GitHub zen. type: string @@ -130687,7 +130575,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -130712,7 +130600,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project_card @@ -130860,7 +130748,7 @@ components: - type: 'null' - "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project_card @@ -130898,7 +130786,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -131127,7 +131015,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project_card @@ -131151,7 +131039,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project @@ -131175,7 +131063,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project_column @@ -131200,7 +131088,7 @@ components: - type: 'null' - "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project_column @@ -131233,7 +131121,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -131257,7 +131145,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project_column @@ -131281,7 +131169,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project @@ -131307,7 +131195,7 @@ components: - type: 'null' - "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project @@ -131351,7 +131239,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project @@ -131374,7 +131262,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project @@ -131394,7 +131282,7 @@ components: projects_v2: "$ref": "#/components/schemas/projects-v2" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2 @@ -131415,7 +131303,7 @@ components: projects_v2: "$ref": "#/components/schemas/projects-v2" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2 @@ -131436,7 +131324,7 @@ components: projects_v2: "$ref": "#/components/schemas/projects-v2" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2 @@ -131496,7 +131384,7 @@ components: projects_v2: "$ref": "#/components/schemas/projects-v2" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2 @@ -131520,7 +131408,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -131554,7 +131442,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -131576,7 +131464,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -131597,7 +131485,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -131675,7 +131563,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -131710,7 +131598,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -131734,7 +131622,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -131756,7 +131644,7 @@ components: projects_v2: "$ref": "#/components/schemas/projects-v2" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2 @@ -131777,7 +131665,7 @@ components: projects_v2_status_update: "$ref": "#/components/schemas/projects-v2-status-update" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_status_update @@ -131798,7 +131686,7 @@ components: projects_v2_status_update: "$ref": "#/components/schemas/projects-v2-status-update" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_status_update @@ -131884,7 +131772,7 @@ components: projects_v2_status_update: "$ref": "#/components/schemas/projects-v2-status-update" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_status_update @@ -131903,7 +131791,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - repository - sender @@ -134239,7 +134127,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -136572,7 +136460,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -138905,7 +138793,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -138933,7 +138821,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -138961,7 +138849,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -138989,7 +138877,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -141324,7 +141212,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -141395,7 +141283,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -143716,7 +143604,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -146056,7 +145944,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -148392,7 +148280,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -148420,7 +148308,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -148447,7 +148335,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -148475,7 +148363,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -148503,7 +148391,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -151015,7 +150903,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - comment @@ -153227,7 +153115,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - comment @@ -155442,7 +155330,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -157820,7 +157708,7 @@ components: - author_association - _links sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - review @@ -159942,7 +159830,7 @@ components: review: "$ref": "#/components/schemas/webhooks_review" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -162343,7 +162231,7 @@ components: - login - id sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - requested_reviewer - action @@ -164792,7 +164680,7 @@ components: - repositories_url - permission sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - requested_team - action @@ -167198,7 +167086,7 @@ components: - login - id sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - requested_reviewer - action @@ -169624,7 +169512,7 @@ components: - name - id sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - requested_team - action @@ -171855,7 +171743,7 @@ components: review: "$ref": "#/components/schemas/webhooks_review" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - review @@ -173980,7 +173868,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" thread: type: object properties: @@ -176390,7 +176278,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" thread: type: object properties: @@ -179017,7 +178905,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -181361,7 +181249,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -183690,7 +183578,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -186009,7 +185897,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -186740,7 +186628,7 @@ components: - topics - visibility sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - ref - before @@ -187297,7 +187185,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - registry_package @@ -187674,7 +187562,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - registry_package @@ -187698,7 +187586,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - release @@ -187723,7 +187611,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - release @@ -187778,7 +187666,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -188119,7 +188007,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - release @@ -188143,7 +188031,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - release @@ -188167,7 +188055,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - release @@ -188191,7 +188079,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - release @@ -188215,7 +188103,7 @@ components: repository_advisory: "$ref": "#/components/schemas/repository-advisory" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -188239,7 +188127,7 @@ components: repository_advisory: "$ref": "#/components/schemas/repository-advisory" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -188261,7 +188149,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -188283,7 +188171,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -188305,7 +188193,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -188336,7 +188224,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - branch @@ -188398,7 +188286,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -188417,7 +188305,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" status: type: string enum: @@ -188445,7 +188333,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -188467,7 +188355,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -188506,7 +188394,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -188531,7 +188419,7 @@ components: repository_ruleset: "$ref": "#/components/schemas/repository-ruleset" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository_ruleset @@ -188555,7 +188443,7 @@ components: repository_ruleset: "$ref": "#/components/schemas/repository-ruleset" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository_ruleset @@ -188673,7 +188561,7 @@ components: from: type: string sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository_ruleset @@ -188832,7 +188720,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -188855,7 +188743,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -188879,7 +188767,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -189033,7 +188921,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -189058,7 +188946,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -189206,7 +189094,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -189231,7 +189119,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -189255,7 +189143,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - location - alert @@ -189290,7 +189178,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -189314,7 +189202,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -189338,7 +189226,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -189362,7 +189250,7 @@ components: security_advisory: "$ref": "#/components/schemas/webhooks_security_advisory" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - security_advisory @@ -189385,7 +189273,7 @@ components: security_advisory: "$ref": "#/components/schemas/webhooks_security_advisory" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - security_advisory @@ -189519,7 +189407,7 @@ components: - withdrawn_at - vulnerabilities sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - security_advisory @@ -189544,7 +189432,7 @@ components: repository: "$ref": "#/components/schemas/full-repository" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - changes - repository @@ -189565,7 +189453,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sponsorship: "$ref": "#/components/schemas/webhooks_sponsorship" required: @@ -189589,7 +189477,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sponsorship: "$ref": "#/components/schemas/webhooks_sponsorship" required: @@ -189625,7 +189513,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sponsorship: "$ref": "#/components/schemas/webhooks_sponsorship" required: @@ -189652,7 +189540,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sponsorship: "$ref": "#/components/schemas/webhooks_sponsorship" required: @@ -189680,7 +189568,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sponsorship: "$ref": "#/components/schemas/webhooks_sponsorship" required: @@ -189707,7 +189595,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sponsorship: "$ref": "#/components/schemas/webhooks_sponsorship" required: @@ -189732,7 +189620,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" starred_at: description: 'The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` @@ -189762,7 +189650,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" starred_at: description: 'The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` @@ -190141,7 +190029,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sha: description: The Commit SHA. type: string @@ -190201,7 +190089,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - parent_issue_id @@ -190236,7 +190124,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - parent_issue_id @@ -190271,7 +190159,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - sub_issue_id @@ -190306,7 +190194,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - sub_issue_id @@ -190327,7 +190215,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" team: "$ref": "#/components/schemas/webhooks_team_1" required: @@ -190815,7 +190703,7 @@ components: - topics - visibility sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" team: "$ref": "#/components/schemas/webhooks_team_1" required: @@ -191303,7 +191191,7 @@ components: - topics - visibility sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" team: "$ref": "#/components/schemas/webhooks_team_1" required: @@ -191792,7 +191680,7 @@ components: - topics - visibility sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" team: "$ref": "#/components/schemas/webhooks_team_1" required: @@ -192345,7 +192233,7 @@ components: - topics - visibility sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" team: "$ref": "#/components/schemas/webhooks_team_1" required: @@ -192835,7 +192723,7 @@ components: - topics - visibility sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" team: "$ref": "#/components/schemas/webhooks_team_1" required: @@ -192860,7 +192748,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -192885,7 +192773,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow: type: string required: @@ -192911,7 +192799,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow_job: allOf: - title: Workflow Job @@ -193186,7 +193074,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow_job: allOf: - title: Workflow Job @@ -193487,7 +193375,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow_job: type: object properties: @@ -193656,7 +193544,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow_job: type: object properties: @@ -193826,7 +193714,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow: "$ref": "#/components/schemas/webhooks_workflow" workflow_run: @@ -194782,7 +194670,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow: "$ref": "#/components/schemas/webhooks_workflow" workflow_run: @@ -195732,7 +195620,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow: "$ref": "#/components/schemas/webhooks_workflow" workflow_run: @@ -209978,7 +209866,7 @@ components: analyses_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses?sarif_id=47177e22-5596-11eb-80a1-c1e54ef945c6 code-security-configuration-for-repository: value: - state: attached + status: attached configuration: id: 1325 target_type: organization @@ -224269,6 +224157,13 @@ components: required: false schema: "$ref": "#/components/schemas/code-scanning-ref" + pr-alias: + name: pr + description: The number of the pull request for the results you want to list. + in: query + required: false + schema: + type: integer alert-number: name: alert_number in: path