From e52b680bf7864f85d0bcdc049ced0ed1b85e4226 Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Tue, 18 Mar 2025 10:02:02 +0000 Subject: [PATCH] [GitHubEnterprise-3.14] Update to 1.1.4-104eead85eed7e03a026852edc095233 from 1.1.4-d38aae92477e79392ec7b388fbc01e51 Detected Schema changes: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ├─┬Paths │ ├─┬/orgs/{org}/properties/schema │ │ └─┬PATCH │ │ └──[🔀] description (15128:20) │ ├─┬/repos/{owner}/{repo}/issues │ │ ├─┬GET │ │ │ └──[➖] parameters (32131:15)❌ │ │ └─┬POST │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └──[➖] properties (32279:17)❌ │ ├─┬/repos/{owner}/{repo}/issues/{issue_number} │ │ └─┬PATCH │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └──[➖] properties (32895:17)❌ │ └─┬/orgs/{org}/issues │ └─┬GET │ └──[➖] parameters (12715:15)❌ └─┬Components ├──[➖] schemas (71090:7)❌ ├─┬webhook-issues-transferred │ └─┬changes │ └─┬new_issue │ └──[➖] properties (127058:17)❌ ├─┬webhook-issues-labeled │ └─┬issue │ └──[➖] properties (120781:13)❌ ├─┬app-permissions │ └─┬dependabot_secrets │ └──[🔀] description (66877:24) ├─┬custom-property-set-payload │ └──[➖] properties (75800:9)❌ ├─┬webhook-issues-locked │ └─┬issue │ └──[➖] properties (121774:13)❌ ├─┬webhook-issues-closed │ └─┬issue │ └─┬ALLOF │ └──[➖] properties (116759:15)❌ ├─┬issue-search-result-item │ └──[➖] properties (89414:9)❌ ├─┬webhook-issue-comment-deleted │ └─┬issue │ └─┬ALLOF │ └──[➖] properties (114294:15)❌ ├─┬webhook-issues-demilestoned │ └─┬issue │ └──[➖] properties (118848:13)❌ ├─┬webhook-issues-deleted │ └─┬issue │ └──[➖] properties (117863:13)❌ ├─┬webhooks_issue_2 │ └──[➖] properties (95671:9)❌ ├─┬webhook-issues-unlocked │ └─┬issue │ └──[➖] properties (128588:13)❌ ├─┬webhook-issues-reopened │ └─┬issue │ └──[➖] properties (126198:13)❌ ├─┬webhook-issue-comment-created │ └─┬issue │ └─┬ALLOF │ └──[➖] properties (113081:15)❌ ├─┬webhook-issues-opened │ └─┬issue │ └──[➖] properties (125105:13)❌ ├─┬webhook-issues-edited │ └─┬issue │ └──[➖] properties (119812:13)❌ ├─┬issue │ └──[➖] properties (71390:9)❌ ├─┬webhooks_issue │ └──[➖] properties (94589:9)❌ ├─┬webhook-issue-comment-edited │ └─┬issue │ └─┬ALLOF │ └──[➖] properties (115514:15)❌ └─┬webhook-issues-milestoned └─┬issue └──[➖] properties (122739:13)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 5 | 4 | | components | 21 | 24 | Date: 03/18/25 | Commit: Original: etc/specs/GitHubEnterprise-3.14/current.spec.yaml, Modified: etc/specs/GitHubEnterprise-3.14/previous.spec.yaml, - ❌ **BREAKING Changes**: _28_ out of _26_ - **Modifications**: _2_ - **Removals**: _24_ - **Breaking Removals**: _24_ ERROR: breaking changes discovered --- clients/GitHubEnterprise-3.14/README.md | 8 + .../etc/openapi-client-generator.state | 216 +++---- .../Operation/Repos/Owner/Repo/Issues.php | 196 +++++++ .../Owner/Repo/Issues/Events/EventId.php | 196 +++++++ .../Repos/Owner/Repo/Issues/IssueNumber.php | 196 +++++++ .../Repo/Issues/IssueNumber/Assignees.php | 196 +++++++ .../Hydrator/WebHook/IssueComment.php | 254 ++++++++ .../src/Internal/Hydrator/WebHook/Issues.php | 544 ++++++++++++++++++ .../src/Internal/Hydrators.php | 4 +- .../Internal/Operation/Issues/ListForOrg.php | 7 +- .../Operation/Issues/ListForOrgListing.php | 7 +- .../Internal/Operation/Issues/ListForRepo.php | 7 +- .../Operation/Issues/ListForRepoListing.php | 7 +- .../Internal/Operator/Issues/ListForOrg.php | 6 +- .../Operator/Issues/ListForOrgListing.php | 6 +- .../Internal/Operator/Issues/ListForRepo.php | 6 +- .../Operator/Issues/ListForRepoListing.php | 6 +- .../src/Internal/Router/Get/Five.php | 2 +- .../src/Internal/Router/Get/Four.php | 2 +- .../src/Internal/Router/Get/Issues.php | 20 +- .../src/Internal/Router/List/Five.php | 2 +- .../src/Internal/Router/List/Four.php | 2 +- .../src/Internal/Router/List/Issues.php | 20 +- .../src/Operation/Issues.php | 24 +- .../src/PHPStan/ClientCallReturnTypes.php | 8 +- .../Tiet48C54263/Tiet9E6AA5F9.php} | 84 ++- .../Tiet4D165B48/TietE1DB3DED.php} | 6 +- .../Tiet1A4D6BC3/TietDC15B85A.php} | 84 ++- .../src/Schema/AppPermissions.php | 4 +- .../Request/ApplicationJson.php | 2 +- .../ScopeToken/Request/ApplicationJson.php | 2 +- .../src/Schema/Authorization.php | 2 +- .../src/Schema/CustomPropertySetPayload.php | 22 +- .../src/Schema/Event.php | 77 +++ .../src/Schema/Event/Payload.php | 77 +++ .../src/Schema/Installation.php | 2 +- .../src/Schema/InstallationToken.php | 2 +- .../src/Schema/Issue.php | 80 ++- .../src/Schema/IssueEvent.php | 77 +++ .../src/Schema/IssueSearchResultItem.php | 80 ++- .../src/Schema/IssueType.php | 108 ++++ .../Issues/Create/Request/ApplicationJson.php | 16 +- .../Issues/Update/Request/ApplicationJson.php | 16 +- .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Application/Json.php | 2 +- .../Response/ApplicationJson/Ok.php | 2 +- .../Response/ApplicationJson/Ok.php | 87 +++ .../src/Schema/ScopedInstallation.php | 2 +- .../Schema/TimelineCrossReferencedEvent.php | 77 +++ .../TimelineCrossReferencedEvent/Source.php | 77 +++ .../src/Schema/TimelineIssueEvents.php | 67 +++ .../src/Schema/WebhookInstallationCreated.php | 2 +- .../src/Schema/WebhookInstallationDeleted.php | 2 +- ...hookInstallationNewPermissionsAccepted.php | 2 +- .../WebhookInstallationRepositoriesAdded.php | 2 +- ...WebhookInstallationRepositoriesRemoved.php | 2 +- .../src/Schema/WebhookInstallationSuspend.php | 2 +- .../Schema/WebhookInstallationUnsuspend.php | 2 +- .../src/Schema/WebhookIssueCommentCreated.php | 77 +++ .../WebhookIssueCommentCreated/Issue.php | 80 ++- .../src/Schema/WebhookIssueCommentDeleted.php | 77 +++ .../WebhookIssueCommentDeleted/Issue.php | 80 ++- .../src/Schema/WebhookIssueCommentEdited.php | 77 +++ .../WebhookIssueCommentEdited/Issue.php | 2 +- .../src/Schema/WebhookIssuesAssigned.php | 77 +++ .../src/Schema/WebhookIssuesClosed.php | 77 +++ .../src/Schema/WebhookIssuesClosed/Issue.php | 80 ++- .../src/Schema/WebhookIssuesDeleted.php | 77 +++ .../src/Schema/WebhookIssuesDeleted/Issue.php | 80 ++- .../src/Schema/WebhookIssuesDemilestoned.php | 77 +++ .../WebhookIssuesDemilestoned/Issue.php | 80 ++- .../src/Schema/WebhookIssuesEdited.php | 77 +++ .../src/Schema/WebhookIssuesEdited/Issue.php | 80 ++- .../src/Schema/WebhookIssuesLabeled.php | 77 +++ .../src/Schema/WebhookIssuesLabeled/Issue.php | 80 ++- .../src/Schema/WebhookIssuesLocked.php | 77 +++ .../src/Schema/WebhookIssuesLocked/Issue.php | 80 ++- .../src/Schema/WebhookIssuesMilestoned.php | 77 +++ .../Schema/WebhookIssuesMilestoned/Issue.php | 80 ++- .../src/Schema/WebhookIssuesOpened.php | 77 +++ .../src/Schema/WebhookIssuesOpened/Issue.php | 80 ++- .../src/Schema/WebhookIssuesPinned.php | 77 +++ .../src/Schema/WebhookIssuesReopened.php | 77 +++ .../Schema/WebhookIssuesReopened/Issue.php | 80 ++- .../src/Schema/WebhookIssuesTransferred.php | 154 +++++ .../WebhookIssuesTransferred/Changes.php | 77 +++ .../Changes/NewIssue.php | 2 +- .../src/Schema/WebhookIssuesUnassigned.php | 77 +++ .../src/Schema/WebhookIssuesUnlabeled.php | 77 +++ .../src/Schema/WebhookIssuesUnlocked.php | 77 +++ .../Schema/WebhookIssuesUnlocked/Issue.php | 80 ++- .../src/Schema/WebhookIssuesUnpinned.php | 77 +++ .../src/Schema/WebhooksIssue.php | 2 +- .../src/Schema/WebhooksIssue2.php | 2 +- .../Issues/ListForOrgListingTest.php | 7 +- .../Operation/Issues/ListForOrgTest.php | 7 +- .../Issues/ListForRepoListingTest.php | 21 +- .../Operation/Issues/ListForRepoTest.php | 21 +- .../tests/Types/ClientCallReturnTypes.php | 8 +- .../GitHubEnterprise-3.14/current.spec.yaml | 134 ++++- 100 files changed, 5560 insertions(+), 236 deletions(-) rename clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/{TietDA4B21A1/TietF13EF2B6/Tiet8587BE69/Tiet7A289AF8.php => Tiet1D46AC86/TietABF5E7B1/Tiet48C54263/Tiet9E6AA5F9.php} (95%) rename clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/{Tiet69A6FC90/TietEF30F65A/Tiet9798C033/Tiet5960D0A8.php => TietA6754E69/Tiet89E7A5A9/Tiet4D165B48/TietE1DB3DED.php} (99%) rename clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/{Tiet48D4F560/TietC01B2A02/Tiet32650007/TietC774C7C0.php => TietD2099588/Tiet42D08062/Tiet1A4D6BC3/TietDC15B85A.php} (95%) create mode 100644 clients/GitHubEnterprise-3.14/src/Schema/IssueType.php diff --git a/clients/GitHubEnterprise-3.14/README.md b/clients/GitHubEnterprise-3.14/README.md index 75251fc1543..ecd33b6c2d6 100644 --- a/clients/GitHubEnterprise-3.14/README.md +++ b/clients/GitHubEnterprise-3.14/README.md @@ -7035,6 +7035,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/issues', [ 'org' => 'generated', 'labels' => 'generated', + 'type' => 'generated', 'since' => '1970-01-01T00:00:00+00:00', 'filter' => 'generated', 'state' => 'generated', @@ -7049,6 +7050,7 @@ Operations method: ```php $client->operations()->issues()->listForOrg( org: 'generated', labels: 'generated', + type: 'generated', since: '1970-01-01T00:00:00+00:00', filter: 'generated', state: 'generated', @@ -7071,6 +7073,7 @@ Using the `call` method: $client->call('LIST /orgs/{org}/issues', [ 'org' => 'generated', 'labels' => 'generated', + 'type' => 'generated', 'since' => '1970-01-01T00:00:00+00:00', 'filter' => 'generated', 'state' => 'generated', @@ -7085,6 +7088,7 @@ Operations method: ```php $client->operations()->issues()->listForOrgListing( org: 'generated', labels: 'generated', + type: 'generated', since: '1970-01-01T00:00:00+00:00', filter: 'generated', state: 'generated', @@ -18032,6 +18036,7 @@ $client->call('GET /repos/{owner}/{repo}/issues', [ 'repo' => 'generated', 'milestone' => 'generated', 'assignee' => 'generated', + 'type' => 'generated', 'creator' => 'generated', 'mentioned' => 'generated', 'labels' => 'generated', @@ -18050,6 +18055,7 @@ $client->operations()->issues()->listForRepo( owner: 'generated', repo: 'generated', milestone: 'generated', assignee: 'generated', + type: 'generated', creator: 'generated', mentioned: 'generated', labels: 'generated', @@ -18076,6 +18082,7 @@ $client->call('LIST /repos/{owner}/{repo}/issues', [ 'repo' => 'generated', 'milestone' => 'generated', 'assignee' => 'generated', + 'type' => 'generated', 'creator' => 'generated', 'mentioned' => 'generated', 'labels' => 'generated', @@ -18094,6 +18101,7 @@ $client->operations()->issues()->listForRepoListing( owner: 'generated', repo: 'generated', milestone: 'generated', assignee: 'generated', + type: 'generated', creator: 'generated', mentioned: 'generated', labels: 'generated', diff --git a/clients/GitHubEnterprise-3.14/etc/openapi-client-generator.state b/clients/GitHubEnterprise-3.14/etc/openapi-client-generator.state index 85652dfc2f9..5776807727e 100644 --- a/clients/GitHubEnterprise-3.14/etc/openapi-client-generator.state +++ b/clients/GitHubEnterprise-3.14/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "d38aae92477e79392ec7b388fbc01e51", + "specHash": "104eead85eed7e03a026852edc095233", "generatedFiles": { "files": [ { @@ -3592,27 +3592,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForOrg.php", - "hash": "6076efcb2e1c895e5c6f1772ab02356d" + "hash": "85ef192c9f91e99f5b4c6cdc56e7d6f1" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForOrg.php", - "hash": "bac0756259f4e81f248369afeaaada9b" + "hash": "1c78b42ed0214ac9e9ce137336b56083" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForOrgTest.php", - "hash": "e5f8a20e2cec75c4aed05ae26b67e634" + "hash": "9ae000ef8cae3f8b30ae09f8283f81fb" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForOrgListing.php", - "hash": "60f6194d037288c03a6fb016f173a83b" + "hash": "99ae693c1f724d0ff2e48303aae7a10f" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForOrgListing.php", - "hash": "814484ca9028dfbd227e7db206e1b052" + "hash": "33ffa7468cc64df668823de785e26fea" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForOrgListingTest.php", - "hash": "5b4322f51f64c63bb83ec691f5091f42" + "hash": "2c752acfb50d143848cd9f32d86973b1" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListMembers.php", @@ -8608,27 +8608,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForRepo.php", - "hash": "6c497a8540ba2f378bf477dbe1f8c845" + "hash": "e239e989d4c81be8d00efda28d931d4f" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForRepo.php", - "hash": "f56b4f3f6423c7d0229c6a2f427753cc" + "hash": "028b57086cd0ae8316bf74f1b85a6013" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForRepoTest.php", - "hash": "e19f5e39fb86e377187c7b32bd9624a4" + "hash": "e3dddac65f5426dc57b33700a6b9d4a7" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForRepoListing.php", - "hash": "aa6d6b925283b950c8b3da03cd4bd75e" + "hash": "d67f8cd7d1613888a91c093e73198102" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForRepoListing.php", - "hash": "cbd56a0dd684d7a8281c9e62a1769462" + "hash": "55463e0ab338afd4f972ebf956f53fa3" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForRepoListingTest.php", - "hash": "e2c8943774fbf38c8eca2ee0609352bc" + "hash": "5b80ab429862b676d3844296b0b3e35f" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/Create.php", @@ -13372,15 +13372,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AppPermissions.php", - "hash": "54d6f150556918dc5ef8d921ea4456a4" + "hash": "3b284265903044042d01ced19fdf14f5" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/ScopedInstallation.php", - "hash": "4cc21b523de62bb864270926d9095877" + "hash": "a6b2cdb5307fb970258e9c137995f844" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Authorization.php", - "hash": "813df098cac1c4888620ae6d9341329a" + "hash": "6818a670783d7d0f6bd187c51f97f363" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/SecurityAdvisoryEcosystems.php", @@ -13484,7 +13484,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Installation.php", - "hash": "321ca62f29b314486681a585459f89ae" + "hash": "b8d9d90918049327d47878df91ea1c67" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/LicenseSimple.php", @@ -13496,7 +13496,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/InstallationToken.php", - "hash": "f24be58340b4d35991265c45304387fd" + "hash": "d83f6801041954e2230fcb0ad2d162f7" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/ApplicationGrant.php", @@ -13888,7 +13888,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Issue.php", - "hash": "53cdb178d3150e15ccaceae68321d709" + "hash": "887a33821fb73170413045723ef85879" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/IssueComment.php", @@ -13896,7 +13896,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Event.php", - "hash": "bb6f9bdb030da2dbb03fce4e76285788" + "hash": "593a07ed1dd98b9931eec5cf8a9d50ef" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/LinkWithType.php", @@ -14200,7 +14200,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/CustomPropertySetPayload.php", - "hash": "43f309f2357d0422728309fa47d00cac" + "hash": "345f6d716aed2067bae5c8787caff9ed" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/CustomPropertyValue.php", @@ -14884,7 +14884,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/IssueEvent.php", - "hash": "7f6acf9beff24c1345330f98f23573ff" + "hash": "8d98150e0de9a64d412cc4653d6e8823" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/LabeledIssueEvent.php", @@ -14960,7 +14960,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent.php", - "hash": "87897f90cdc3e1e2a5b63fd0eb3bd83d" + "hash": "7734eff9dc85e3c8c0d259f1bd793190" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/TimelineCommittedEvent.php", @@ -14996,7 +14996,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/TimelineIssueEvents.php", - "hash": "b6c6d3253920a8918d82761cc186d39d" + "hash": "72154d0ecb64e7f8d215b53d10708181" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/DeployKey.php", @@ -15264,7 +15264,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem.php", - "hash": "cf28b8d2c925416fd6ec4af354f04f4b" + "hash": "ad5f531e5a1dc7dfcb00149214878ab0" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/LabelSearchResultItem.php", @@ -15870,33 +15870,25 @@ "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhooksChanges.php", "hash": "9fd6986b2ebbbc4185f81832d6444cbd" }, - { - "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietDA4B21A1\/TietF13EF2B6\/Tiet8587BE69\/Tiet7A289AF8.php", - "hash": "c4364e270d9b1fd0a4519268924c0c1c" - }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited\/Issue.php", - "hash": "fe05b1b317243d310202ee74e3943c35" + "hash": "69fc59f77d9d626aff75b399707881ee" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhooksIssue.php", - "hash": "53a54c0884784f5df3695593bb314f69" + "hash": "42dae6d316e0b982aab30dfd388c3a1c" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhooksMilestone.php", "hash": "554ed75093e715c23a6394a471a905e9" }, - { - "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet48D4F560\/TietC01B2A02\/Tiet32650007\/TietC774C7C0.php", - "hash": "fc60c2fde3388cd39e88e928b2d36def" - }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes\/NewIssue.php", - "hash": "efb3dee470381c7407a78098950ce100" + "hash": "32e8b695677d85ff4832312893ff0a21" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhooksIssue2.php", - "hash": "df35a0264ee2e18965867e64532cf4c2" + "hash": "6b3e2e1e93927ba772f6bab5a62f36cc" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9BB7FDE7\/Tiet7C408E87\/TietF0A7E59F\/Tiet74AED450.php", @@ -16568,27 +16560,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookInstallationCreated.php", - "hash": "ef479c889a283b037c9c9563f28ef9ee" + "hash": "e46587347bc7ef48fd5d180abc8cdaff" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookInstallationDeleted.php", - "hash": "2534d64206ab30a590f7f5f0c0fb25a9" + "hash": "893ae8aa058d6aa6d161ccef5ca11312" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookInstallationNewPermissionsAccepted.php", - "hash": "445a50b2054be46b2cd70a2720c8a9c1" + "hash": "820ec803abdf3eb87280d38edd6fb732" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookInstallationRepositoriesAdded.php", - "hash": "b486a4788783019755da11e13f0fbe23" + "hash": "7bda7a063ca1b021a34374f27defcfcd" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookInstallationRepositoriesRemoved.php", - "hash": "35acde8011a6053a9bec0fd152fa4218" + "hash": "7ab7b1981c4e70a5b3c6fd92dc5773f9" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookInstallationSuspend.php", - "hash": "da4d6c7dc25f525dd9d35ee90384d2d1" + "hash": "6373d0aa6c66f3e05be8294501b7ae1b" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookInstallationTargetRenamed.php", @@ -16596,83 +16588,83 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookInstallationUnsuspend.php", - "hash": "c4e63cdbf1f11bc495660387740dbae7" + "hash": "172bb170ab723863392d78ca48054dd9" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated.php", - "hash": "bdc34204c7a29d662aee5f304fddfbcd" + "hash": "f8aa93671f262e58e2fb19e6b7e813b8" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted.php", - "hash": "9f6ab815354d24b0e0863d7a498c9953" + "hash": "274a3e36de671094198f986262910b1f" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited.php", - "hash": "19658b8af138c8745cb14007c763270b" + "hash": "77324aa65048b551a19d5823793474d0" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesAssigned.php", - "hash": "ebc466d02490edd999d8fabaa03f8654" + "hash": "05b60ced62e7f11d0fcd165ff33b4909" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed.php", - "hash": "5417a837cd8603d6378979d18a0ee887" + "hash": "95d057016caaff090d66427529f1245a" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted.php", - "hash": "455d16aa049b0b9b0b78deaae4f8178d" + "hash": "621b59e1e0a90332728bdec401317bf5" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned.php", - "hash": "f899cc9428f0b6fc796ce2c9b77bc4f3" + "hash": "c64afaef635e2ecc7a2d98ebae191f62" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited.php", - "hash": "5e6525ca23849cb8fc9f7b6725a6e444" + "hash": "ecba5dbe72084605ccf99ca0cf7bc1d9" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled.php", - "hash": "c17d9862849fc62af5bb5c6d44db21b8" + "hash": "40523c7853d9c76e78001f25cd3942b8" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked.php", - "hash": "59e2734eea028437341272655fef3d96" + "hash": "7a33297e6d88be6551d47bc700edc592" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned.php", - "hash": "bd4cb9f5e2e12fdff3f76200b5e55b4a" + "hash": "3cb1fe1e6a8296e0230267b6a538c5c9" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened.php", - "hash": "6b4d105dfb7de36705ce5f2d29fa1847" + "hash": "31644e9c121a6fba7fec3a292e330bbe" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesPinned.php", - "hash": "ec6668bec2240c02a1b0572669cd618a" + "hash": "6dc1006fefe94c46e1cf78ae16d1dcf3" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened.php", - "hash": "d17f818e234d8d7bdcb2e75721f24fa0" + "hash": "764396b09f4737d0df4b4bed502b610e" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred.php", - "hash": "c264b372c6c9a8395cc99eac24d66337" + "hash": "4a9a6e9a789889c408bb431427be1b97" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnassigned.php", - "hash": "44f03124291916c37a5d96af92af3461" + "hash": "41ade43703c1c43e39126d780c5b485d" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlabeled.php", - "hash": "8861980e8d7b7b87f839a9e112949ca1" + "hash": "a1dec8813cdbfff79782b5fe103cf173" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked.php", - "hash": "26023922fa006130e6dc4d6022049b6b" + "hash": "c716d5157aba6c1817e72fb386610305" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnpinned.php", - "hash": "a9c6d478183c5de1cabb0accaff1e46f" + "hash": "08a58e50b3d79b482be89399c0604abf" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookLabelCreated.php", @@ -17732,7 +17724,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Event\/Payload.php", - "hash": "c51af9fd5081eccf9c421eb758180f9c" + "hash": "49e8472ee698805f8973ce373f220c9d" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Event\/Payload\/Pages.php", @@ -18920,7 +18912,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent\/Source.php", - "hash": "598a5027425b6796194ee907b13a5e80" + "hash": "d9bac30a7505c2e6e4d8a227cec71fae" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet07DCB36B\/Tiet91F472DA\/TietA9474AC9\/Tiet7F1CE862.php", @@ -23080,7 +23072,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue.php", - "hash": "f6abc0b0e9d739932bc0e0786fd4646c" + "hash": "10e15c91f9dbbf887f4578a67590c880" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue\/PerformedViaGithubApp.php", @@ -23088,11 +23080,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted\/Issue.php", - "hash": "c919fd59816760de90cde82fbef62797" + "hash": "67aaf6f6e4ce7a6209f17fd2f49a8c80" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue.php", - "hash": "173c1a14f8fe0a21b06d955cd458eb43" + "hash": "a115836dffdbb1515c48237c3e5ff3e2" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue\/PerformedViaGithubApp.php", @@ -23100,7 +23092,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue.php", - "hash": "f1fbe09fb4d0fb5edaa47e2269bac323" + "hash": "f23bc84d6bee7af099206d5f815bf887" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue\/PerformedViaGithubApp.php", @@ -23108,7 +23100,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned\/Issue.php", - "hash": "56cec42592807b5fdfeafc31ac71b73f" + "hash": "87f8b65afa237274918fa1c8c19423ce" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD0156E29\/Tiet718D0614\/Tiet1A091EF2\/TietD0F00D93.php", @@ -23148,7 +23140,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited\/Issue.php", - "hash": "fb845d4ddd2eb640a644a2e40daeb6b3" + "hash": "79130b6ae3792f769a2aa0cc4f0158bc" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet7812D63D\/TietEDB87D54\/TietD5274EF4\/Tiet675CE42D.php", @@ -23164,7 +23156,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue.php", - "hash": "49b5ccfdb01b805d89f3496feab6fc35" + "hash": "f43aa159107b978ae52c2f1b24f6a359" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue\/PerformedViaGithubApp.php", @@ -23172,7 +23164,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue.php", - "hash": "f7e40b0326a05a2165743d8b349da760" + "hash": "9df95b28f2422cb2bff5ef889e8c6d69" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue\/PerformedViaGithubApp.php", @@ -23180,7 +23172,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue.php", - "hash": "1ee4da7cd50f6d6e19d80095ed664290" + "hash": "a97c2b7b0b07e191bcc9633b82ff1e4f" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue\/PerformedViaGithubApp.php", @@ -23200,11 +23192,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Issue.php", - "hash": "cef840cd69a1d0eb705840db180b75db" + "hash": "d000816c2e4c3d07e3ff4aabdd22a40b" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue.php", - "hash": "8a8a4e9e2de56460aa6854baa6a01c30" + "hash": "05d373ac7b386b6f3db59efb48fda212" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue\/PerformedViaGithubApp.php", @@ -23212,7 +23204,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes.php", - "hash": "7e251a5880837764ebc698802228b04d" + "hash": "eb3c2931722440cf194032b4a94a3cfb" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD1D37F76\/TietFBFEB2AA\/Tiet0915167C\/Tiet4DBB1C70.php", @@ -23228,7 +23220,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked\/Issue.php", - "hash": "282b45b7ea4037431faead8f61c8b16c" + "hash": "bd026bdca730078d7f75d037c8f80d24" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/WebhookLabelEdited\/Changes.php", @@ -24808,7 +24800,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Apps\/CreateInstallationAccessToken\/Request\/ApplicationJson.php", - "hash": "7727b1d4f787bd703cab0bec04897366" + "hash": "193410441bc844bc738a571b319d7734" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9197E244\/TietB82917D2\/TietACD5D9B1\/Tiet79DAB836.php", @@ -24836,7 +24828,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Apps\/ScopeToken\/Request\/ApplicationJson.php", - "hash": "d24b2fbefb0c09c4f23df89ed93e5ead" + "hash": "4473c207beb9e3e34c78bace67e839f0" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/OauthAuthorizations\/CreateAuthorization\/Request\/ApplicationJson.php", @@ -25318,21 +25310,17 @@ "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Orgs\/UpdateWebhook\/Request\/ApplicationJson\/Config.php", "hash": "8b35a62783c2164c0e2873da1af501e7" }, - { - "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet69A6FC90\/TietEF30F65A\/Tiet9798C033\/Tiet5960D0A8.php", - "hash": "5aa6fb1c973b9d0c8f81442c9b3747ba" - }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Operations\/Apps\/ListInstallationsForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", - "hash": "53e75fa7cdf3bff08e4c4ba909a904de" + "hash": "4303460ca887ec2090f6a5ae68f2ca37" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Operations\/Apps\/ListInstallationsForAuthenticatedUser\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "6f6b54b759639bcba8c5b736c5d688f1" + "hash": "9e7943b0e4dd4ae516afd61ed9f0d64e" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Operations\/Orgs\/ListAppInstallations\/Response\/ApplicationJson\/Ok.php", - "hash": "b4b038610eff709640e1f5238b0b860b" + "hash": "0cede66bfe018b0eaeb07960eaa9a15f" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Orgs\/SetMembershipForUser\/Request\/ApplicationJson.php", @@ -26276,7 +26264,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Issues\/Create\/Request\/ApplicationJson.php", - "hash": "1cf7d1798f3f7eb5749df663a8fd2d5a" + "hash": "335cc418a5e348ab8d9aef4140dbd513" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietC87B405D\/Tiet9B9DED8B\/Tiet852071AE\/Tiet1AF85D12.php", @@ -26308,7 +26296,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Issues\/Update\/Request\/ApplicationJson.php", - "hash": "5db94b60907e5ccb5e765595c4b7155a" + "hash": "1244e5dcd3e4cb57a5e95343282e8b0f" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Issues\/AddAssignees\/Request\/ApplicationJson.php", @@ -26544,7 +26532,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/IssuesAndPullRequests\/Response\/ApplicationJson\/Ok.php", - "hash": "bf725f2bc2c42a55eab2effe719655d5" + "hash": "0a298b22f92257af9f6c9f54c6868574" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/Labels\/Response\/ApplicationJson\/Ok.php", @@ -26748,7 +26736,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Issues.php", - "hash": "9310023911292b2ff9a361dc25993f38" + "hash": "c7bc48cbc64206b961ed067c7fa812ad" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Migrations.php", @@ -26844,7 +26832,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Issues.php", - "hash": "a02273207bbce63b7971807523fee754" + "hash": "2aef2366862555bdd23a37fa7a54c8ad" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Migrations.php", @@ -27224,7 +27212,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "a8685313ab27af52ba2d770fad09c865" + "hash": "5b28e5a2365026846e66705f198aa1fc" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", @@ -27236,7 +27224,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "b07c3129c02039907ccb3a8d3d76e9cc" + "hash": "490ed1d01eb5b8a454b70eabf5546b68" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -27264,11 +27252,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php", - "hash": "04d7bebd979765b12c9ded734740a97c" + "hash": "eb1fd2b7b100ef0753d005fc97703337" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "acd7909d2adc36a5541ecf4184f9e6ac" + "hash": "980b73b2bfe634a1328d81fbe86232f6" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", @@ -27440,11 +27428,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "eb9acf050e7c53fe1a316472b8cdc81d" + "hash": "5a48c43f5e29d4b87d123e7c82980bd0" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "e5864aba0dd4de9cada7ede4eeee69c5" + "hash": "d16df4c77220b909a10f1cf33766f740" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -27516,7 +27504,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Issues.php", - "hash": "35c64af07212fd2867cedbad7f520cbc" + "hash": "8a3c4c0e40ac43e8cad7a6b7fc0b091c" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Licenses.php", @@ -29320,7 +29308,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues.php", - "hash": "ff1bd1ecd0102c1d64bbe41864a6c9c9" + "hash": "1e9ad159342db1e3868d620545058d08" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Comments.php", @@ -29340,15 +29328,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Events\/EventId.php", - "hash": "7b1d435e3668f7cced155f79259ec9e0" + "hash": "e7a6d351d5136253562c67155f2c353a" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber.php", - "hash": "b7487d601cb38282e01602761101a1b3" + "hash": "8c529fc8eaac852f8397188f3dfecf8f" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees.php", - "hash": "d5f6216104039e5a797e17b5e92c9f90" + "hash": "af895e48601377cdd2cd5a9abf1277eb" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees\/Assignee.php", @@ -30072,11 +30060,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/IssueComment.php", - "hash": "5e7b8a2ba3da905fd46f816850382ebf" + "hash": "ae22bb3da79cecbe6f15afa04242cb3d" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Issues.php", - "hash": "17c4f61ea75cd9a6af77c54c07762afb" + "hash": "6da541658e89ae27671c06c9cea06cba" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Label.php", @@ -30244,7 +30232,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "cfbd5a95a457181202af0ded967fedcf" + "hash": "c9af5f1b09230819611b16d62dc8c656" }, { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php", @@ -30313,6 +30301,22 @@ { "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietE8D41C9A\/Tiet1255E585\/Tiet44FA9DEE\/Tiet93E2B36C.php", "hash": "89f95f050fae650bab31b0847d250e79" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/IssueType.php", + "hash": "f538d37ed24199a88e8ee00d62992fa5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet1D46AC86\/TietABF5E7B1\/Tiet48C54263\/Tiet9E6AA5F9.php", + "hash": "1509a87dd8eb6bb09e43cf3a2196ae42" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD2099588\/Tiet42D08062\/Tiet1A4D6BC3\/TietDC15B85A.php", + "hash": "5c1a81726ca97eab5c51681e05a21deb" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietA6754E69\/Tiet89E7A5A9\/Tiet4D165B48\/TietE1DB3DED.php", + "hash": "bbf8a1fe3747ff9a86eb0438cffe7185" } ] }, diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php b/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php index 041599abfb0..11720f55092 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php @@ -9,6 +9,7 @@ use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Issue; use ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest; +use ApiClients\Client\GitHubEnterprise\Schema\IssueType; use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple; use ApiClients\Client\GitHubEnterprise\Schema\Milestone; use ApiClients\Client\GitHubEnterprise\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable; @@ -60,6 +61,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($payload), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($payload), @@ -568,6 +570,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1212,6 +1234,113 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(array $payload): IssueType + { + $properties = []; + $missingFields = []; + try { + $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['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -3108,6 +3237,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($object), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($object), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($object), @@ -3432,6 +3562,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -3698,6 +3837,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php b/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php index 33a4c52ae50..6f99b9dea13 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php @@ -15,6 +15,7 @@ use ApiClients\Client\GitHubEnterprise\Schema\IssueEventMilestone; use ApiClients\Client\GitHubEnterprise\Schema\IssueEventProjectCard; use ApiClients\Client\GitHubEnterprise\Schema\IssueEventRename; +use ApiClients\Client\GitHubEnterprise\Schema\IssueType; use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple; use ApiClients\Client\GitHubEnterprise\Schema\Milestone; use ApiClients\Client\GitHubEnterprise\Schema\ReactionRollup; @@ -64,6 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($payload), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($payload), @@ -1103,6 +1105,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1486,6 +1508,113 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(array $payload): IssueType + { + $properties = []; + $missingFields = []; + try { + $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['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -3994,6 +4123,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue($object), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($object), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($object), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($object), @@ -4527,6 +4657,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -4694,6 +4833,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php b/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php index 0b76d46ff8d..4019e205d18 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php @@ -9,6 +9,7 @@ use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Issue; use ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest; +use ApiClients\Client\GitHubEnterprise\Schema\IssueType; use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple; use ApiClients\Client\GitHubEnterprise\Schema\Milestone; use ApiClients\Client\GitHubEnterprise\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable; @@ -57,6 +58,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($payload), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($payload), @@ -451,6 +453,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1095,6 +1117,113 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(array $payload): IssueType + { + $properties = []; + $missingFields = []; + try { + $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['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -3019,6 +3148,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($object), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($object), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($object), @@ -3275,6 +3405,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -3541,6 +3680,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php b/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php index 35a3d1d6ac1..0468b83df3e 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php @@ -8,6 +8,7 @@ use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Issue; use ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest; +use ApiClients\Client\GitHubEnterprise\Schema\IssueType; use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple; use ApiClients\Client\GitHubEnterprise\Schema\Milestone; use ApiClients\Client\GitHubEnterprise\Schema\ReactionRollup; @@ -54,6 +55,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($payload), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($payload), @@ -445,6 +447,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1089,6 +1111,113 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(array $payload): IssueType + { + $properties = []; + $missingFields = []; + try { + $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['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -2846,6 +2975,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($object), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($object), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($object), @@ -3099,6 +3229,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -3365,6 +3504,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/WebHook/IssueComment.php b/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/WebHook/IssueComment.php index 291cd575050..224d1854411 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/WebHook/IssueComment.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/WebHook/IssueComment.php @@ -8,6 +8,7 @@ use ApiClients\Client\GitHubEnterprise\Schema\EnterpriseWebhooks; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions; +use ApiClients\Client\GitHubEnterprise\Schema\IssueType; use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple; use ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks; @@ -84,6 +85,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️Reactions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks($payload), @@ -1705,6 +1707,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -3576,6 +3598,113 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(array $payload): IssueType + { + $properties = []; + $missingFields = []; + try { + $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['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\User { $properties = []; @@ -7971,6 +8100,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -10729,6 +10878,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -15671,6 +15840,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️Reactions($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary($object), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks($object), @@ -16491,6 +16661,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -17597,6 +17776,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\User); @@ -19904,6 +20140,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -21449,6 +21694,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/WebHook/Issues.php b/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/WebHook/Issues.php index c31f6beca88..5654394c5f4 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/WebHook/Issues.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Hydrator/WebHook/Issues.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\WebHook; use ApiClients\Client\GitHubEnterprise\Schema\EnterpriseWebhooks; +use ApiClients\Client\GitHubEnterprise\Schema\IssueType; use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple; use ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks; @@ -102,6 +103,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️Reactions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️User($payload), 'ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks($payload), @@ -1261,6 +1263,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -3132,6 +3154,113 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(array $payload): IssueType + { + $properties = []; + $missingFields = []; + try { + $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['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️User(array $payload): User { $properties = []; @@ -6939,6 +7068,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -9588,6 +9737,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -12257,6 +12426,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -15508,6 +15697,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['title'] ?? null; if ($value === null) { @@ -18273,6 +18482,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['title'] ?? null; if ($value === null) { @@ -20922,6 +21151,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['title'] ?? null; if ($value === null) { @@ -23602,6 +23851,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -30294,6 +30563,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -32943,6 +33232,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -35633,6 +35942,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $properties['user'] = $value; after_user: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookIssuesReopened\Issue', $exception, stack: $this->hydrationStack); } @@ -38309,6 +38638,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -43035,6 +43384,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -45422,6 +45791,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️Reactions($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($object), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️User($object), 'ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks($object), @@ -46152,6 +46522,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -47258,6 +47637,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️User(mixed $object): mixed { assert($object instanceof User); @@ -49292,6 +49728,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -50801,6 +51246,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -52319,6 +52773,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -54129,6 +54592,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $title = $object->title; after_title: $result['title'] = $title; @@ -55681,6 +56153,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $title = $object->title; after_title: $result['title'] = $title; @@ -57185,6 +57666,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $title = $object->title; after_title: $result['title'] = $title; @@ -58701,6 +59191,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -62341,6 +62840,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -63850,6 +64358,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -65369,6 +65886,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $user = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️User($user); after_user: $result['user'] = $user; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + return $result; } @@ -66875,6 +67401,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -69316,6 +69851,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Hydrators.php b/clients/GitHubEnterprise-3.14/src/Internal/Hydrators.php index efb704aff68..e317d9ade8d 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Hydrators.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Hydrators.php @@ -912,7 +912,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Hook', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\HookResponse' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Operations\\Repos\\RedeliverWebhookDelivery\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks🌀HookId🌀Deliveries🌀DeliveryId🌀Attempts()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\RepositoryInvitation' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Invitations🌀InvitationId()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Milestone', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\SubIssuesSummary' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Milestone', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueType', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\SubIssuesSummary' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueComment' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments🌀CommentId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEvent', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventLabel', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Team', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Team\\Permissions', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventDismissedReview', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventMilestone', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventProjectCard', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventRename' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Events🌀EventId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\DeployKey' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Keys()->hydrateObject($className, $payload), @@ -1256,7 +1256,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Hook', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\HookResponse' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Operations\\Repos\\RedeliverWebhookDelivery\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks🌀HookId🌀Deliveries🌀DeliveryId🌀Attempts()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\RepositoryInvitation' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Invitations🌀InvitationId()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Milestone', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\SubIssuesSummary' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Milestone', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueType', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\SubIssuesSummary' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueComment' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments🌀CommentId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEvent', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventLabel', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Team', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Team\\Permissions', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventDismissedReview', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventMilestone', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventProjectCard', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventRename' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Events🌀EventId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\DeployKey' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Keys()->serializeObject($object), diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForOrg.php b/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForOrg.php index b1a6a85ecde..971462644e2 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForOrg.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForOrg.php @@ -29,6 +29,8 @@ final class ListForOrg private string $org; /**A list of comma separated label names. Example: `bug,ui,@high` **/ private string $labels; + /**Can be the name of an issue type. **/ + private string $type; /**Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. **/ private string $since; /**Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation. **/ @@ -44,10 +46,11 @@ final class ListForOrg /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.14/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Issues $hydrator, string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Issues $hydrator, string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) { $this->org = $org; $this->labels = $labels; + $this->type = $type; $this->since = $since; $this->filter = $filter; $this->state = $state; @@ -59,7 +62,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{org}', '{labels}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/orgs/{org}/issues' . '?labels={labels}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + return new Request('GET', str_replace(['{org}', '{labels}', '{type}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->type, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/orgs/{org}/issues' . '?labels={labels}&type={type}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); } /** @return Observable */ diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForOrgListing.php b/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForOrgListing.php index 39843793d39..1254b1b9108 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForOrgListing.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForOrgListing.php @@ -29,6 +29,8 @@ final class ListForOrgListing private string $org; /**A list of comma separated label names. Example: `bug,ui,@high` **/ private string $labels; + /**Can be the name of an issue type. **/ + private string $type; /**Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. **/ private string $since; /**Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation. **/ @@ -44,10 +46,11 @@ final class ListForOrgListing /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.14/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Issues $hydrator, string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Issues $hydrator, string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) { $this->org = $org; $this->labels = $labels; + $this->type = $type; $this->since = $since; $this->filter = $filter; $this->state = $state; @@ -59,7 +62,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{org}', '{labels}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/orgs/{org}/issues' . '?labels={labels}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + return new Request('GET', str_replace(['{org}', '{labels}', '{type}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->type, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/orgs/{org}/issues' . '?labels={labels}&type={type}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); } /** @return Observable */ diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForRepo.php b/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForRepo.php index 6ae81774ffb..39118297c6e 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForRepo.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForRepo.php @@ -33,6 +33,8 @@ final class ListForRepo private string $milestone; /**Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. **/ private string $assignee; + /**Can be the name of an issue type. If the string `*` is passed, issues with any type are accepted. If the string `none` is passed, issues without type are returned. **/ + private string $type; /**The user that created the issue. **/ private string $creator; /**A user that's mentioned in the issue. **/ @@ -52,12 +54,13 @@ final class ListForRepo /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.14/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Issues $hydrator, string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Issues $hydrator, string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) { $this->owner = $owner; $this->repo = $repo; $this->milestone = $milestone; $this->assignee = $assignee; + $this->type = $type; $this->creator = $creator; $this->mentioned = $mentioned; $this->labels = $labels; @@ -71,7 +74,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues' . '?milestone={milestone}&assignee={assignee}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{type}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->type, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues' . '?milestone={milestone}&assignee={assignee}&type={type}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); } /** @return Observable|Schema\BasicError */ diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForRepoListing.php b/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForRepoListing.php index 8db1086cc08..78b411e2679 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForRepoListing.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Operation/Issues/ListForRepoListing.php @@ -33,6 +33,8 @@ final class ListForRepoListing private string $milestone; /**Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. **/ private string $assignee; + /**Can be the name of an issue type. If the string `*` is passed, issues with any type are accepted. If the string `none` is passed, issues without type are returned. **/ + private string $type; /**The user that created the issue. **/ private string $creator; /**A user that's mentioned in the issue. **/ @@ -52,12 +54,13 @@ final class ListForRepoListing /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.14/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Issues $hydrator, string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Issues $hydrator, string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) { $this->owner = $owner; $this->repo = $repo; $this->milestone = $milestone; $this->assignee = $assignee; + $this->type = $type; $this->creator = $creator; $this->mentioned = $mentioned; $this->labels = $labels; @@ -71,7 +74,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues' . '?milestone={milestone}&assignee={assignee}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{type}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->type, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues' . '?milestone={milestone}&assignee={assignee}&type={type}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); } /** @return Observable|Schema\BasicError */ diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForOrg.php b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForOrg.php index 697b2dbed05..a23731bbbd9 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForOrg.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForOrg.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + /** @return iterable */ + public function call(string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { - $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForOrg($this->responseSchemaValidator, $this->hydrator, $org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForOrg($this->responseSchemaValidator, $this->hydrator, $org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForOrgListing.php b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForOrgListing.php index 96fcfb84f2d..dffd8fdc5da 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForOrgListing.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForOrgListing.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + /** @return iterable */ + public function call(string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { - $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForRepo.php b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForRepo.php index 7d2ddcecdc3..4f490ff95c1 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForRepo.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForRepo.php @@ -25,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|Schema\BasicError */ - public function call(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError + /** @return iterable|Schema\BasicError */ + public function call(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError { - $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); $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|BasicError { return $operation->createResponse($response); diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForRepoListing.php b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForRepoListing.php index 96ec3b5fd98..2f959004c73 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForRepoListing.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Operator/Issues/ListForRepoListing.php @@ -25,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|Schema\BasicError */ - public function call(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError + /** @return iterable|Schema\BasicError */ + public function call(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError { - $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); $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|BasicError { return $operation->createResponse($response); diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Five.php b/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Five.php index 28626bccdcf..628a508ea84 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Five.php @@ -51,7 +51,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|ActionsEnterprisePermissions|Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|iterable|WithoutBody|GistComment|GhesChecksSystemRequirements|GhesClusterStatus|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\GetManageConfigApplyStatus\Response\ApplicationJson\Ok|GhesLicenseInfo|GhesConfigNodes|GhesGetSettings|GhesReplicationStatus|BasicError|ThreadSubscription|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrganizationRole|OrgPreReceiveHook|RepositoryRuleset|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Installation|Language|LicenseContent|Page|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Four.php b/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Four.php index ae98c6bb096..99611337e13 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Four.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Four.php @@ -53,7 +53,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|iterable|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): GlobalHook|PreReceiveEnvironment|PreReceiveHook|WebhookConfig|iterable|Installation|ApplicationGrant|WithoutBody|LicenseInfo|EnterpriseOverview|EnterpriseCommentOverview|EnterpriseGistOverview|EnterpriseHookOverview|EnterpriseIssueOverview|EnterpriseMilestoneOverview|EnterpriseOrganizationOverview|EnterprisePageOverview|EnterprisePullRequestOverview|EnterpriseRepositoryOverview|EnterpriseSecurityProductsOverview|EnterpriseUserOverview|EnterpriseSecurityAnalysisSettings|GistSimple|GitignoreTemplate|Thread|Ok|AnnouncementBanner|Json|ExternalGroups|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|ConfigurationStatus|MaintenanceStatus|EnterpriseSettings|GpgKey|Key|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Issues.php b/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Issues.php index d2fcd383c7a..7dc7caf77d5 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Issues.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Router/Get/Issues.php @@ -83,7 +83,7 @@ public function listForAuthenticatedUser(array $params): iterable|WithoutBody return $operator->call($arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } - /** @return Observable */ + /** @return iterable */ public function listForOrg(array $params): iterable { $arguments = []; @@ -99,6 +99,12 @@ public function listForOrg(array $params): iterable $arguments['labels'] = $params['labels']; unset($params['labels']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); if (array_key_exists('since', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: since'); } @@ -143,7 +149,7 @@ public function listForOrg(array $params): iterable unset($params['page']); $operator = new Internal\Operator\Issues\ListForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Issues()); - return $operator->call($arguments['org'], $arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + return $operator->call($arguments['org'], $arguments['labels'], $arguments['type'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } /** @return */ @@ -452,7 +458,7 @@ public function listAssignees(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return Observable|Schema\BasicError */ + /** @return iterable|Schema\BasicError */ public function listForRepo(array $params): iterable|BasicError { $arguments = []; @@ -480,6 +486,12 @@ public function listForRepo(array $params): iterable|BasicError $arguments['assignee'] = $params['assignee']; unset($params['assignee']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); if (array_key_exists('creator', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: creator'); } @@ -536,7 +548,7 @@ public function listForRepo(array $params): iterable|BasicError unset($params['page']); $operator = new Internal\Operator\Issues\ListForRepo($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['type'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } /** @return Observable */ diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Five.php b/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Five.php index dda11c9dc13..e9c10a87549 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Five.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Five.php @@ -16,7 +16,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Four.php b/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Four.php index 8306a8a22ae..af812b45976 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Four.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Four.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|iterable|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/GitHubEnterprise-3.14/src/Internal/Router/List/Issues.php b/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Issues.php index 48d07f4e246..0630df4c273 100644 --- a/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Issues.php +++ b/clients/GitHubEnterprise-3.14/src/Internal/Router/List/Issues.php @@ -172,7 +172,7 @@ public function listListing(array $params): iterable|WithoutBody } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ public function listForOrgListing(array $params): iterable { $arguments = []; @@ -188,6 +188,12 @@ public function listForOrgListing(array $params): iterable $arguments['labels'] = $params['labels']; unset($params['labels']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); if (array_key_exists('since', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: since'); } @@ -233,7 +239,7 @@ public function listForOrgListing(array $params): iterable $arguments['page'] = 1; do { $operator = new Internal\Operator\Issues\ListForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Issues()); - $items = [...$operator->call($arguments['org'], $arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page'])]; + $items = [...$operator->call($arguments['org'], $arguments['labels'], $arguments['type'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -280,7 +286,7 @@ public function listAssigneesListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable|Schema\BasicError */ + /** @return iterable|Schema\BasicError */ public function listForRepoListing(array $params): iterable|BasicError { $arguments = []; @@ -308,6 +314,12 @@ public function listForRepoListing(array $params): iterable|BasicError $arguments['assignee'] = $params['assignee']; unset($params['assignee']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); if (array_key_exists('creator', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: creator'); } @@ -365,7 +377,7 @@ public function listForRepoListing(array $params): iterable|BasicError $arguments['page'] = 1; do { $operator = new Internal\Operator\Issues\ListForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page'])]; + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['type'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page'])]; yield from $items; diff --git a/clients/GitHubEnterprise-3.14/src/Operation/Issues.php b/clients/GitHubEnterprise-3.14/src/Operation/Issues.php index 1cfadb816d3..32a12585a1b 100644 --- a/clients/GitHubEnterprise-3.14/src/Operation/Issues.php +++ b/clients/GitHubEnterprise-3.14/src/Operation/Issues.php @@ -32,16 +32,16 @@ public function listListing(string $labels, string $since, bool $collab, bool $o return $this->operators->issues👷ListListing()->call($labels, $since, $collab, $orgs, $owned, $pulls, $filter, $state, $sort, $direction, $perPage, $page); } - /** @return Observable */ - public function listForOrg(string $org, string $labels, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable + /** @return iterable */ + public function listForOrg(string $org, string $labels, string $type, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable { - return $this->operators->issues👷ListForOrg()->call($org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + return $this->operators->issues👷ListForOrg()->call($org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); } - /** @return Observable */ - public function listForOrgListing(string $org, string $labels, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable + /** @return iterable */ + public function listForOrgListing(string $org, string $labels, string $type, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable { - return $this->operators->issues👷ListForOrgListing()->call($org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + return $this->operators->issues👷ListForOrgListing()->call($org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); } /** @return Observable */ @@ -62,16 +62,16 @@ public function checkUserCanBeAssigned(string $owner, string $repo, string $assi return $this->operators->issues👷CheckUserCanBeAssigned()->call($owner, $repo, $assignee); } - /** @return Observable|Schema\BasicError */ - public function listForRepo(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError + /** @return iterable|Schema\BasicError */ + public function listForRepo(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError { - return $this->operators->issues👷ListForRepo()->call($owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + return $this->operators->issues👷ListForRepo()->call($owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); } - /** @return Observable|Schema\BasicError */ - public function listForRepoListing(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError + /** @return iterable|Schema\BasicError */ + public function listForRepoListing(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError { - return $this->operators->issues👷ListForRepoListing()->call($owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + return $this->operators->issues👷ListForRepoListing()->call($owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); } /** @return */ diff --git a/clients/GitHubEnterprise-3.14/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.14/src/PHPStan/ClientCallReturnTypes.php index bb6c23f2e35..31f7ddb81d9 100644 --- a/clients/GitHubEnterprise-3.14/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.14/src/PHPStan/ClientCallReturnTypes.php @@ -1316,11 +1316,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/issues') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /orgs/{org}/issues') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /orgs/{org}/members') { @@ -3064,11 +3064,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/issues') { - return $this->typeResolver->resolve('Observable|Schema\\BasicError'); + return $this->typeResolver->resolve('iterable|Schema\\BasicError'); } if ($call === 'LIST /repos/{owner}/{repo}/issues') { - return $this->typeResolver->resolve('Observable|Schema\\BasicError'); + return $this->typeResolver->resolve('iterable|Schema\\BasicError'); } if ($call === 'POST /repos/{owner}/{repo}/issues') { diff --git a/clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/TietDA4B21A1/TietF13EF2B6/Tiet8587BE69/Tiet7A289AF8.php b/clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/Tiet1D46AC86/TietABF5E7B1/Tiet48C54263/Tiet9E6AA5F9.php similarity index 95% rename from clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/TietDA4B21A1/TietF13EF2B6/Tiet8587BE69/Tiet7A289AF8.php rename to clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/Tiet1D46AC86/TietABF5E7B1/Tiet48C54263/Tiet9E6AA5F9.php index f00039090e0..6a7e7f691ae 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/TietDA4B21A1/TietF13EF2B6/Tiet8587BE69/Tiet7A289AF8.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/Tiet1D46AC86/TietABF5E7B1/Tiet48C54263/Tiet9E6AA5F9.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\TietDA4B21A1\TietF13EF2B6\Tiet8587BE69; +namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet1D46AC86\TietABF5E7B1\Tiet48C54263; use ApiClients\Client\GitHubEnterprise\Schema; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet7A289AF8 +abstract readonly class Tiet9E6AA5F9 { public const SCHEMA_JSON = '{ "title": "Issue", @@ -1162,6 +1162,73 @@ "type": "string", "description": "Title of the issue" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "updated_at": { "type": "string", "format": "date-time" @@ -1533,6 +1600,16 @@ "state_reason": "generated", "timeline_url": "https:\\/\\/example.com\\/", "title": "generated", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "updated_at": "1970-01-01T00:00:00+00:00", "url": "https:\\/\\/example.com\\/", "user": { @@ -1568,6 +1645,7 @@ * performedViaGithubApp: GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. * state: State of the issue; either 'open' or 'closed' * title: Title of the issue + * type: The type of issue. * url: URL for the issue */ public function __construct(#[MapFrom('active_lock_reason')] @@ -1585,7 +1663,7 @@ public function __construct(#[MapFrom('active_lock_reason')] public string $repositoryUrl, #[MapFrom('sub_issues_summary')] public Schema\WebhooksIssue\SubIssuesSummary|null $subIssuesSummary, public string|null $state, #[MapFrom('state_reason')] public string|null $stateReason, #[MapFrom('timeline_url')] - public string|null $timelineUrl, public string $title, #[MapFrom('updated_at')] + public string|null $timelineUrl, public string $title, public Schema\IssueType|null $type, #[MapFrom('updated_at')] public string $updatedAt, public string $url, public Schema\WebhooksIssue\User|null $user,) { } diff --git a/clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/Tiet69A6FC90/TietEF30F65A/Tiet9798C033/Tiet5960D0A8.php b/clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/TietA6754E69/Tiet89E7A5A9/Tiet4D165B48/TietE1DB3DED.php similarity index 99% rename from clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/Tiet69A6FC90/TietEF30F65A/Tiet9798C033/Tiet5960D0A8.php rename to clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/TietA6754E69/Tiet89E7A5A9/Tiet4D165B48/TietE1DB3DED.php index d0a8f2af972..e7bade9b28f 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/Tiet69A6FC90/TietEF30F65A/Tiet9798C033/Tiet5960D0A8.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/TietA6754E69/Tiet89E7A5A9/Tiet4D165B48/TietE1DB3DED.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet69A6FC90\TietEF30F65A\Tiet9798C033; +namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\TietA6754E69\Tiet89E7A5A9\Tiet4D165B48; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet5960D0A8 +abstract readonly class TietE1DB3DED { public const SCHEMA_JSON = '{ "required": [ @@ -411,7 +411,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/Tiet48D4F560/TietC01B2A02/Tiet32650007/TietC774C7C0.php b/clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/TietD2099588/Tiet42D08062/Tiet1A4D6BC3/TietDC15B85A.php similarity index 95% rename from clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/Tiet48D4F560/TietC01B2A02/Tiet32650007/TietC774C7C0.php rename to clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/TietD2099588/Tiet42D08062/Tiet1A4D6BC3/TietDC15B85A.php index 904f88ce1c6..b6c922999ac 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/Tiet48D4F560/TietC01B2A02/Tiet32650007/TietC774C7C0.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/AliasAbstract/TietD2099588/Tiet42D08062/Tiet1A4D6BC3/TietDC15B85A.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet48D4F560\TietC01B2A02\Tiet32650007; +namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\TietD2099588\Tiet42D08062\Tiet1A4D6BC3; use ApiClients\Client\GitHubEnterprise\Schema; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class TietC774C7C0 +abstract readonly class TietDC15B85A { public const SCHEMA_JSON = '{ "title": "Issue", @@ -1156,6 +1156,73 @@ "type": "string", "description": "Title of the issue" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "updated_at": { "type": "string", "format": "date-time" @@ -1526,6 +1593,16 @@ "state_reason": "generated", "timeline_url": "https:\\/\\/example.com\\/", "title": "generated", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "updated_at": "1970-01-01T00:00:00+00:00", "url": "https:\\/\\/example.com\\/", "user": { @@ -1561,6 +1638,7 @@ * performedViaGithubApp: GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. * state: State of the issue; either 'open' or 'closed' * title: Title of the issue + * type: The type of issue. * url: URL for the issue */ public function __construct(#[MapFrom('active_lock_reason')] @@ -1578,7 +1656,7 @@ public function __construct(#[MapFrom('active_lock_reason')] public string $repositoryUrl, #[MapFrom('sub_issues_summary')] public Schema\WebhooksIssue2\SubIssuesSummary|null $subIssuesSummary, public string|null $state, #[MapFrom('state_reason')] public string|null $stateReason, #[MapFrom('timeline_url')] - public string|null $timelineUrl, public string $title, #[MapFrom('updated_at')] + public string|null $timelineUrl, public string $title, public Schema\IssueType|null $type, #[MapFrom('updated_at')] public string $updatedAt, public string $url, public Schema\WebhooksIssue2\User|null $user,) { } diff --git a/clients/GitHubEnterprise-3.14/src/Schema/AppPermissions.php b/clients/GitHubEnterprise-3.14/src/Schema/AppPermissions.php index 65e9b726c5f..feaa8c63a13 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/AppPermissions.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/AppPermissions.php @@ -58,7 +58,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ @@ -462,7 +462,7 @@ * checks: The level of permission to grant the access token for checks on code. * codespaces: The level of permission to grant the access token to create, edit, delete, and list Codespaces. * contents: The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. - * dependabotSecrets: The leve of permission to grant the access token to manage Dependabot secrets. + * dependabotSecrets: The level of permission to grant the access token to manage Dependabot secrets. * deployments: The level of permission to grant the access token for deployments and deployment statuses. * environments: The level of permission to grant the access token for managing repository environments. * issues: The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. diff --git a/clients/GitHubEnterprise-3.14/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php b/clients/GitHubEnterprise-3.14/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php index 64b4d8d16e8..e18868d9f0f 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php @@ -82,7 +82,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHubEnterprise-3.14/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php b/clients/GitHubEnterprise-3.14/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php index 6d2ad239fa1..8565d0e202f 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php @@ -106,7 +106,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHubEnterprise-3.14/src/Schema/Authorization.php b/clients/GitHubEnterprise-3.14/src/Schema/Authorization.php index 6a181d70eee..cb4c1bbeda4 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/Authorization.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/Authorization.php @@ -349,7 +349,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHubEnterprise-3.14/src/Schema/CustomPropertySetPayload.php b/clients/GitHubEnterprise-3.14/src/Schema/CustomPropertySetPayload.php index a56f09b61f9..b59f70df804 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/CustomPropertySetPayload.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/CustomPropertySetPayload.php @@ -69,6 +69,21 @@ "type": "string" }, "description": "An ordered list of the allowed values of the property.\\nThe property can have up to 200 allowed values." + }, + "values_editable_by": { + "enum": [ + "org_actors", + "org_and_repo_actors", + null + ], + "type": [ + "string", + "null" + ], + "description": "Who can edit the values of the property", + "examples": [ + "org_actors" + ] } }, "description": "Custom property set payload" @@ -80,7 +95,8 @@ "required": false, "default_value": null, "description": "generated", - "allowed_values": null + "allowed_values": null, + "values_editable_by": "org_actors" }'; /** @@ -90,11 +106,13 @@ * description: Short description of the property * allowedValues: An ordered list of the allowed values of the property. The property can have up to 200 allowed values. + * valuesEditableBy: Who can edit the values of the property */ public function __construct(#[MapFrom('value_type')] public string $valueType, public bool|null $required, #[MapFrom('default_value')] public string|array|null $defaultValue, public string|null $description, #[MapFrom('allowed_values')] - public array|null $allowedValues,) + public array|null $allowedValues, #[MapFrom('values_editable_by')] + public string|null $valuesEditableBy,) { } } diff --git a/clients/GitHubEnterprise-3.14/src/Schema/Event.php b/clients/GitHubEnterprise-3.14/src/Schema/Event.php index cceb55964bd..dad3ee6c431 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/Event.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/Event.php @@ -1394,6 +1394,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "repository": { "title": "Repository", "required": [ @@ -3802,6 +3869,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", diff --git a/clients/GitHubEnterprise-3.14/src/Schema/Event/Payload.php b/clients/GitHubEnterprise-3.14/src/Schema/Event/Payload.php index 941479f09fb..fa4099ac41d 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/Event/Payload.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/Event/Payload.php @@ -1277,6 +1277,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "repository": { "title": "Repository", "required": [ @@ -3648,6 +3715,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", diff --git a/clients/GitHubEnterprise-3.14/src/Schema/Installation.php b/clients/GitHubEnterprise-3.14/src/Schema/Installation.php index deb9bea0ff1..056eb70a1a6 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/Installation.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/Installation.php @@ -401,7 +401,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHubEnterprise-3.14/src/Schema/InstallationToken.php b/clients/GitHubEnterprise-3.14/src/Schema/InstallationToken.php index 26e52b0dca8..0982809f31a 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/InstallationToken.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/InstallationToken.php @@ -73,7 +73,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHubEnterprise-3.14/src/Schema/Issue.php b/clients/GitHubEnterprise-3.14/src/Schema/Issue.php index 248fcf0880f..8f0b3f9446f 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/Issue.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/Issue.php @@ -1272,6 +1272,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "repository": { "title": "Repository", "required": [ @@ -2873,6 +2940,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", @@ -3064,6 +3141,7 @@ * title: Title of the issue * body: Contents of the issue * labels: Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository + * type: The type of issue. * repository: A repository on GitHub. * authorAssociation: How the author is associated with the repository. */ @@ -3083,7 +3161,7 @@ public function __construct(public int $id, #[MapFrom('node_id')] public Schema\SimpleUser|null $closedBy, #[MapFrom('body_html')] public string|null $bodyHtml, #[MapFrom('body_text')] public string|null $bodyText, #[MapFrom('timeline_url')] - public string|null $timelineUrl, public Schema\Repository|null $repository, #[MapFrom('performed_via_github_app')] + public string|null $timelineUrl, public Schema\IssueType|null $type, public Schema\Repository|null $repository, #[MapFrom('performed_via_github_app')] public Schema\Integration|null $performedViaGithubApp, #[MapFrom('author_association')] public string $authorAssociation, public Schema\ReactionRollup|null $reactions, #[MapFrom('sub_issues_summary')] public Schema\SubIssuesSummary|null $subIssuesSummary,) diff --git a/clients/GitHubEnterprise-3.14/src/Schema/IssueEvent.php b/clients/GitHubEnterprise-3.14/src/Schema/IssueEvent.php index 729d08a2bcf..dfefbe80573 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/IssueEvent.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/IssueEvent.php @@ -1517,6 +1517,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "repository": { "title": "Repository", "required": [ @@ -4628,6 +4695,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", diff --git a/clients/GitHubEnterprise-3.14/src/Schema/IssueSearchResultItem.php b/clients/GitHubEnterprise-3.14/src/Schema/IssueSearchResultItem.php index efa67c436e4..9b46aa2b303 100644 --- a/clients/GitHubEnterprise-3.14/src/Schema/IssueSearchResultItem.php +++ b/clients/GitHubEnterprise-3.14/src/Schema/IssueSearchResultItem.php @@ -2068,6 +2068,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "performed_via_github_app": { "anyOf": [ { @@ -2875,6 +2942,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "performed_via_github_app": { "id": 37, "slug": "probot-owners", @@ -2919,6 +2996,7 @@ /** * authorAssociation: How the author is associated with the repository. * repository: A repository on GitHub. + * type: The type of issue. */ public function __construct(public string $url, #[MapFrom('repository_url')] public string $repositoryUrl, #[MapFrom('labels_url')] @@ -2938,7 +3016,7 @@ public function __construct(public string $url, #[MapFrom('repository_url')] public string $authorAssociation, public bool|null $draft, public Schema\Repository|null $repository, #[MapFrom('body_html')] public string|null $bodyHtml, #[MapFrom('body_text')] public string|null $bodyText, #[MapFrom('timeline_url')] - public string|null $timelineUrl, #[MapFrom('performed_via_github_app')] + public string|null $timelineUrl, public Schema\IssueType|null $type, #[MapFrom('performed_via_github_app')] public Schema\Integration|null $performedViaGithubApp, public Schema\ReactionRollup|null $reactions,) { } diff --git a/clients/GitHubEnterprise-3.14/src/Schema/IssueType.php b/clients/GitHubEnterprise-3.14/src/Schema/IssueType.php new file mode 100644 index 00000000000..6b4644c2c53 --- /dev/null +++ b/clients/GitHubEnterprise-3.14/src/Schema/IssueType.php @@ -0,0 +1,108 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&type=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForOrgListing::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['labels'] = 'generated'; + $data['type'] = 'generated'; $data['since'] = '1970-01-01T00:00:00+00:00'; $data['filter'] = 'generated'; $data['state'] = 'generated'; @@ -60,9 +61,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&type=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForOrgListing('generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForOrgListing('generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); foreach ($result as $item) { } } diff --git a/clients/GitHubEnterprise-3.14/tests/Internal/Operation/Issues/ListForOrgTest.php b/clients/GitHubEnterprise-3.14/tests/Internal/Operation/Issues/ListForOrgTest.php index be0c1fb74d0..5e10604d3af 100644 --- a/clients/GitHubEnterprise-3.14/tests/Internal/Operation/Issues/ListForOrgTest.php +++ b/clients/GitHubEnterprise-3.14/tests/Internal/Operation/Issues/ListForOrgTest.php @@ -31,11 +31,12 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&type=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['labels'] = 'generated'; + $data['type'] = 'generated'; $data['since'] = '1970-01-01T00:00:00+00:00'; $data['filter'] = 'generated'; $data['state'] = 'generated'; @@ -58,8 +59,8 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&type=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForOrg('generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForOrg('generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.14/tests/Internal/Operation/Issues/ListForRepoListingTest.php b/clients/GitHubEnterprise-3.14/tests/Internal/Operation/Issues/ListForRepoListingTest.php index e19accc110e..56f169cb5ee 100644 --- a/clients/GitHubEnterprise-3.14/tests/Internal/Operation/Issues/ListForRepoListingTest.php +++ b/clients/GitHubEnterprise-3.14/tests/Internal/Operation/Issues/ListForRepoListingTest.php @@ -30,13 +30,14 @@ public function call_httpCode_301_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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -62,9 +63,9 @@ public function operations_httpCode_301_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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); foreach ($result as $item) { } } @@ -79,13 +80,14 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -112,9 +114,9 @@ public function operations_httpCode_422_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); foreach ($result as $item) { } } @@ -129,13 +131,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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -162,9 +165,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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); foreach ($result as $item) { } } diff --git a/clients/GitHubEnterprise-3.14/tests/Internal/Operation/Issues/ListForRepoTest.php b/clients/GitHubEnterprise-3.14/tests/Internal/Operation/Issues/ListForRepoTest.php index 9e137316ac7..ca876b13ddc 100644 --- a/clients/GitHubEnterprise-3.14/tests/Internal/Operation/Issues/ListForRepoTest.php +++ b/clients/GitHubEnterprise-3.14/tests/Internal/Operation/Issues/ListForRepoTest.php @@ -30,13 +30,14 @@ public function call_httpCode_301_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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -60,9 +61,9 @@ public function operations_httpCode_301_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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -75,13 +76,14 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -106,9 +108,9 @@ public function operations_httpCode_422_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -121,13 +123,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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -152,8 +155,8 @@ 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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.14/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.14/tests/Types/ClientCallReturnTypes.php index 4b3f93bace6..0732609a59c 100644 --- a/clients/GitHubEnterprise-3.14/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.14/tests/Types/ClientCallReturnTypes.php @@ -335,8 +335,8 @@ function authHeader(): string assertType('', $client->call('POST /orgs/{org}/hooks/{hook_id}/pings')); assertType('', $client->call('GET /orgs/{org}/installation')); assertType('', $client->call('GET /orgs/{org}/installations')); -assertType('Observable', $client->call('GET /orgs/{org}/issues')); -assertType('Observable', $client->call('LIST /orgs/{org}/issues')); +assertType('iterable', $client->call('GET /orgs/{org}/issues')); +assertType('iterable', $client->call('LIST /orgs/{org}/issues')); assertType('Observable', $client->call('GET /orgs/{org}/members')); assertType('Observable', $client->call('LIST /orgs/{org}/members')); assertType('', $client->call('GET /orgs/{org}/members/{username}')); @@ -772,8 +772,8 @@ function authHeader(): string assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/invitations')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/invitations/{invitation_id}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/invitations/{invitation_id}')); -assertType('Observable|Schema\\BasicError', $client->call('GET /repos/{owner}/{repo}/issues')); -assertType('Observable|Schema\\BasicError', $client->call('LIST /repos/{owner}/{repo}/issues')); +assertType('iterable|Schema\\BasicError', $client->call('GET /repos/{owner}/{repo}/issues')); +assertType('iterable|Schema\\BasicError', $client->call('LIST /repos/{owner}/{repo}/issues')); assertType('', $client->call('POST /repos/{owner}/{repo}/issues')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/issues/comments')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/issues/comments')); diff --git a/etc/specs/GitHubEnterprise-3.14/current.spec.yaml b/etc/specs/GitHubEnterprise-3.14/current.spec.yaml index 34ec86992e7..25114ad6cb8 100644 --- a/etc/specs/GitHubEnterprise-3.14/current.spec.yaml +++ b/etc/specs/GitHubEnterprise-3.14/current.spec.yaml @@ -12712,6 +12712,12 @@ paths: - all default: open - "$ref": "#/components/parameters/labels" + - name: type + description: Can be the name of an issue type. + in: query + required: false + schema: + type: string - name: sort description: What to sort results by. in: query @@ -15128,6 +15134,10 @@ paths: description: |- Creates new or updates existing custom properties defined for an organization in a batch. + If the property already exists, the existing property will be replaced with the new values. + Missing optional values will fall back to default values, previous values will be overwritten. + E.g. if a property exists with `values_editable_by: org_and_repo_actors` and it's updated without specifying `values_editable_by`, it will be updated to default value `org_actors`. + To use this endpoint, the authenticated user must be one of: - An administrator for the organization. - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization. @@ -32118,6 +32128,14 @@ paths: required: false schema: type: string + - name: type + description: Can be the name of an issue type. If the string `*` is passed, + issues with any type are accepted. If the string `none` is passed, issues + without type are returned. + in: query + required: false + schema: + type: string - name: creator description: The user that created the issue. in: query @@ -32258,6 +32276,13 @@ paths: are silently dropped otherwise._' items: type: string + type: + type: + - string + - 'null' + description: The name of the issue type to associate with this issue. + examples: + - Epic required: - title examples: @@ -32867,6 +32892,14 @@ paths: push access to the repository, assignee changes are silently dropped. items: type: string + type: + type: + - string + - 'null' + description: The name of the issue type to associate with this issue + or use `null` to remove the current issue type. + examples: + - Epic examples: default: value: @@ -66874,7 +66907,7 @@ components: - write dependabot_secrets: type: string - description: The leve of permission to grant the access token to manage + description: The level of permission to grant the access token to manage Dependabot secrets. enum: - read @@ -71053,6 +71086,58 @@ components: - url - created_at - updated_at + issue-type: + title: Issue Type + description: The type of issue. + type: + - object + - 'null' + properties: + id: + type: integer + description: The unique identifier of the issue type. + node_id: + type: string + description: The node identifier of the issue type. + name: + type: string + description: The name of the issue type. + description: + type: + - string + - 'null' + description: The description of the issue type. + color: + type: + - string + - 'null' + description: The color of the issue type. + enum: + - gray + - blue + - green + - yellow + - orange + - red + - pink + - purple + - + created_at: + type: string + description: The time the issue type created. + format: date-time + updated_at: + type: string + description: The time the issue type last updated. + format: date-time + is_enabled: + type: boolean + description: The enabled state of the issue type. + required: + - id + - node_id + - name + - description author-association: title: author_association type: string @@ -71302,6 +71387,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" repository: "$ref": "#/components/schemas/repository" performed_via_github_app: @@ -75710,6 +75797,17 @@ components: description: |- An ordered list of the allowed values of the property. The property can have up to 200 allowed values. + values_editable_by: + type: + - string + - 'null' + enum: + - org_actors + - org_and_repo_actors + - + description: Who can edit the values of the property + examples: + - org_actors required: - value_type custom-property-value: @@ -89313,6 +89411,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" performed_via_github_app: anyOf: - type: 'null' @@ -94486,6 +94586,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -95566,6 +95668,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -112974,6 +113078,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -114185,6 +114291,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -115403,6 +115511,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -116646,6 +116756,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -117748,6 +117860,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -118731,6 +118845,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -119693,6 +119809,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" title: description: Title of the issue type: string @@ -120660,6 +120778,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" title: description: Title of the issue type: string @@ -121651,6 +121771,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" title: description: Title of the issue type: string @@ -122614,6 +122736,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -124978,6 +125102,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -126069,6 +126195,8 @@ components: format: uri user_view_type: type: string + type: + "$ref": "#/components/schemas/issue-type" organization: "$ref": "#/components/schemas/organization-simple-webhooks" repository: @@ -126927,6 +127055,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -128455,6 +128585,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time