From c140c6abdfa174732a1de3c0db9a616746738e53 Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Tue, 18 Mar 2025 09:06:24 +0000 Subject: [PATCH] [GitHubEnterprise-3.13] Update to 1.1.4-09460ffde7c51e6470752d5d41c06e16 from 1.1.4-5c10b4ce18a4a421bdfbf1462d9c7578 Detected Schema changes: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ├─┬Paths │ ├─┬/repos/{owner}/{repo}/issues │ │ ├─┬GET │ │ │ └──[➖] parameters (31512:15)❌ │ │ └─┬POST │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └──[➖] properties (31660:17)❌ │ ├─┬/orgs/{org}/issues │ │ └─┬GET │ │ └──[➖] parameters (12675:15)❌ │ ├─┬/repos/{owner}/{repo}/issues/{issue_number} │ │ └─┬PATCH │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └──[➖] properties (32276:17)❌ │ └─┬/orgs/{org}/properties/schema │ └─┬PATCH │ └──[🔀] description (14512:20) └─┬Components ├──[➖] schemas (70130:7)❌ ├─┬webhook-issues-labeled │ └─┬issue │ └──[➖] properties (118916:13)❌ ├─┬issue-search-result-item │ └──[➖] properties (87992:9)❌ ├─┬webhook-issues-transferred │ └─┬changes │ └─┬new_issue │ └──[➖] properties (125193:17)❌ ├─┬webhook-issue-comment-edited │ └─┬issue │ └─┬ALLOF │ └──[➖] properties (113649:15)❌ ├─┬webhook-issues-reopened │ └─┬issue │ └──[➖] properties (124333:13)❌ ├─┬webhook-issues-unlocked │ └─┬issue │ └──[➖] properties (126723:13)❌ ├─┬webhook-issues-demilestoned │ └─┬issue │ └──[➖] properties (116983:13)❌ ├─┬webhooks_issue │ └──[➖] properties (92895:9)❌ ├─┬webhook-issues-milestoned │ └─┬issue │ └──[➖] properties (120874:13)❌ ├─┬webhook-issues-locked │ └─┬issue │ └──[➖] properties (119909:13)❌ ├─┬webhook-issues-opened │ └─┬issue │ └──[➖] properties (123240:13)❌ ├─┬webhook-issues-edited │ └─┬issue │ └──[➖] properties (117947:13)❌ ├─┬issue │ └──[➖] properties (70430:9)❌ ├─┬webhook-issues-deleted │ └─┬issue │ └──[➖] properties (115998:13)❌ ├─┬webhooks_issue_2 │ └──[➖] properties (93977:9)❌ ├─┬webhook-issue-comment-deleted │ └─┬issue │ └─┬ALLOF │ └──[➖] properties (112429:15)❌ ├─┬webhook-issues-closed │ └─┬issue │ └─┬ALLOF │ └──[➖] properties (114894:15)❌ ├─┬app-permissions │ └─┬dependabot_secrets │ └──[🔀] description (65917:24) ├─┬custom-property-set-payload │ └──[➖] properties (74415:9)❌ └─┬webhook-issue-comment-created └─┬issue └─┬ALLOF └──[➖] properties (111216:15)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 5 | 4 | | components | 21 | 24 | Date: 03/18/25 | Commit: Original: etc/specs/GitHubEnterprise-3.13/current.spec.yaml, Modified: etc/specs/GitHubEnterprise-3.13/previous.spec.yaml, - ❌ **BREAKING Changes**: _28_ out of _26_ - **Modifications**: _2_ - **Removals**: _24_ - **Breaking Removals**: _24_ ERROR: breaking changes discovered --- clients/GitHubEnterprise-3.13/README.md | 8 + .../etc/openapi-client-generator.state | 218 +++---- .../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 +- .../TietED85F629/Tiet3738A272.php} | 84 ++- .../Tiet4D165B48/TietE1DB3DED.php} | 6 +- .../TietED3399C3/Tiet77E9229F.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.13/current.spec.yaml | 134 ++++- 100 files changed, 5561 insertions(+), 237 deletions(-) rename clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/{Tiet00E2CDA3/Tiet26B4E118/Tiet38BE18FB/TietDD47E726.php => Tiet0968406E/Tiet2C952CDE/TietED85F629/Tiet3738A272.php} (95%) rename clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/{Tiet69A6FC90/TietEF30F65A/Tiet9798C033/Tiet5960D0A8.php => TietA6754E69/Tiet89E7A5A9/Tiet4D165B48/TietE1DB3DED.php} (99%) rename clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/{TietD5D8BF6F/Tiet88C78164/Tiet9DC080A7/Tiet0FC70C0C.php => TietCEC00D30/TietBA28F41C/TietED3399C3/Tiet77E9229F.php} (95%) create mode 100644 clients/GitHubEnterprise-3.13/src/Schema/IssueType.php diff --git a/clients/GitHubEnterprise-3.13/README.md b/clients/GitHubEnterprise-3.13/README.md index d74ef6368ea..26df50fce58 100644 --- a/clients/GitHubEnterprise-3.13/README.md +++ b/clients/GitHubEnterprise-3.13/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', @@ -17662,6 +17666,7 @@ $client->call('GET /repos/{owner}/{repo}/issues', [ 'repo' => 'generated', 'milestone' => 'generated', 'assignee' => 'generated', + 'type' => 'generated', 'creator' => 'generated', 'mentioned' => 'generated', 'labels' => 'generated', @@ -17680,6 +17685,7 @@ $client->operations()->issues()->listForRepo( owner: 'generated', repo: 'generated', milestone: 'generated', assignee: 'generated', + type: 'generated', creator: 'generated', mentioned: 'generated', labels: 'generated', @@ -17706,6 +17712,7 @@ $client->call('LIST /repos/{owner}/{repo}/issues', [ 'repo' => 'generated', 'milestone' => 'generated', 'assignee' => 'generated', + 'type' => 'generated', 'creator' => 'generated', 'mentioned' => 'generated', 'labels' => 'generated', @@ -17724,6 +17731,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.13/etc/openapi-client-generator.state b/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state index 069acf1bffb..3293105f123 100644 --- a/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state +++ b/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "5c10b4ce18a4a421bdfbf1462d9c7578", + "specHash": "09460ffde7c51e6470752d5d41c06e16", "generatedFiles": { "files": [ { @@ -3592,27 +3592,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForOrg.php", - "hash": "f2c45bac2026b1a1f63f4e64c08d7a2e" + "hash": "3e20999a088704dfaf4a39b82dc417de" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForOrg.php", - "hash": "bac0756259f4e81f248369afeaaada9b" + "hash": "1c78b42ed0214ac9e9ce137336b56083" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForOrgTest.php", - "hash": "e5f8a20e2cec75c4aed05ae26b67e634" + "hash": "9ae000ef8cae3f8b30ae09f8283f81fb" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForOrgListing.php", - "hash": "c810a759ecbb09c3c8c11cff2e46f2ed" + "hash": "d3b6da93580e4c34ab012ce0a7671140" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForOrgListing.php", - "hash": "814484ca9028dfbd227e7db206e1b052" + "hash": "33ffa7468cc64df668823de785e26fea" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForOrgListingTest.php", - "hash": "5b4322f51f64c63bb83ec691f5091f42" + "hash": "2c752acfb50d143848cd9f32d86973b1" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListMembers.php", @@ -8444,27 +8444,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForRepo.php", - "hash": "a619bd02d7c973545014b44e70350465" + "hash": "36a78e1c453f4ed9d9c0eb3c625787ef" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForRepo.php", - "hash": "f56b4f3f6423c7d0229c6a2f427753cc" + "hash": "028b57086cd0ae8316bf74f1b85a6013" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForRepoTest.php", - "hash": "e19f5e39fb86e377187c7b32bd9624a4" + "hash": "e3dddac65f5426dc57b33700a6b9d4a7" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForRepoListing.php", - "hash": "84c8f480e73f20c534f6866c18d663d3" + "hash": "876d9290af91952d89653f5752636961" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForRepoListing.php", - "hash": "cbd56a0dd684d7a8281c9e62a1769462" + "hash": "55463e0ab338afd4f972ebf956f53fa3" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForRepoListingTest.php", - "hash": "e2c8943774fbf38c8eca2ee0609352bc" + "hash": "5b80ab429862b676d3844296b0b3e35f" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/Create.php", @@ -13208,15 +13208,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AppPermissions.php", - "hash": "54d6f150556918dc5ef8d921ea4456a4" + "hash": "3b284265903044042d01ced19fdf14f5" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ScopedInstallation.php", - "hash": "4cc21b523de62bb864270926d9095877" + "hash": "a6b2cdb5307fb970258e9c137995f844" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Authorization.php", - "hash": "813df098cac1c4888620ae6d9341329a" + "hash": "6818a670783d7d0f6bd187c51f97f363" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/SecurityAdvisoryEcosystems.php", @@ -13320,7 +13320,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Installation.php", - "hash": "321ca62f29b314486681a585459f89ae" + "hash": "b8d9d90918049327d47878df91ea1c67" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/LicenseSimple.php", @@ -13332,7 +13332,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/InstallationToken.php", - "hash": "f24be58340b4d35991265c45304387fd" + "hash": "d83f6801041954e2230fcb0ad2d162f7" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ApplicationGrant.php", @@ -13724,7 +13724,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Issue.php", - "hash": "53cdb178d3150e15ccaceae68321d709" + "hash": "887a33821fb73170413045723ef85879" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/IssueComment.php", @@ -13732,7 +13732,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Event.php", - "hash": "bb6f9bdb030da2dbb03fce4e76285788" + "hash": "593a07ed1dd98b9931eec5cf8a9d50ef" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/LinkWithType.php", @@ -14008,7 +14008,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CustomPropertySetPayload.php", - "hash": "43f309f2357d0422728309fa47d00cac" + "hash": "345f6d716aed2067bae5c8787caff9ed" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CustomPropertyValue.php", @@ -14688,7 +14688,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/IssueEvent.php", - "hash": "7f6acf9beff24c1345330f98f23573ff" + "hash": "8d98150e0de9a64d412cc4653d6e8823" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/LabeledIssueEvent.php", @@ -14764,7 +14764,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent.php", - "hash": "87897f90cdc3e1e2a5b63fd0eb3bd83d" + "hash": "7734eff9dc85e3c8c0d259f1bd793190" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/TimelineCommittedEvent.php", @@ -14800,7 +14800,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/TimelineIssueEvents.php", - "hash": "b6c6d3253920a8918d82761cc186d39d" + "hash": "72154d0ecb64e7f8d215b53d10708181" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/DeployKey.php", @@ -15064,7 +15064,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem.php", - "hash": "cf28b8d2c925416fd6ec4af354f04f4b" + "hash": "ad5f531e5a1dc7dfcb00149214878ab0" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/LabelSearchResultItem.php", @@ -15642,33 +15642,25 @@ "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhooksChanges.php", "hash": "9fd6986b2ebbbc4185f81832d6444cbd" }, - { - "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD5D8BF6F\/Tiet88C78164\/Tiet9DC080A7\/Tiet0FC70C0C.php", - "hash": "a1ff757a6301cb0089dc4064142c8be6" - }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited\/Issue.php", - "hash": "092a769cf81c43dfe997fc26aa273e0f" + "hash": "d2b3622dc1dcfd960733ead80ed66cfd" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhooksIssue.php", - "hash": "77e393e79318edc40f9a70e7f5363e96" + "hash": "b8d4b83cacefd4edd2ee3c82af0daa62" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhooksMilestone.php", "hash": "554ed75093e715c23a6394a471a905e9" }, - { - "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet00E2CDA3\/Tiet26B4E118\/Tiet38BE18FB\/TietDD47E726.php", - "hash": "bf555004b43221ad62103afa2f63a72c" - }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes\/NewIssue.php", - "hash": "27ab69fdf4e3e8fdc87b07c049336522" + "hash": "da582cde77c717c652345ae058c89982" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhooksIssue2.php", - "hash": "de595fadbd80d0792c9855dadb9a308c" + "hash": "a2b34101ae33e2679ec691ab9dbce75f" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9BB7FDE7\/Tiet7C408E87\/TietF0A7E59F\/Tiet74AED450.php", @@ -16312,27 +16304,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookInstallationCreated.php", - "hash": "5844a2e7609e4e10ed8f2e8945ab954d" + "hash": "b35b7edd8ec4f3435dc80bc70f943123" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookInstallationDeleted.php", - "hash": "38684d773470fe65671ba7ff190f94ff" + "hash": "914b75e230e75143c0c1221f36313cfd" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookInstallationNewPermissionsAccepted.php", - "hash": "89be51553f320f365c9231a68ff69f72" + "hash": "d040027609bb0e74147d5047787133ac" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookInstallationRepositoriesAdded.php", - "hash": "cff278fb2fa676f2393b1700c8deb5a5" + "hash": "20aebb2f8f08839ce7c7c543b0ccf2a3" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookInstallationRepositoriesRemoved.php", - "hash": "a474c487a7495a05688aba355cec6c28" + "hash": "654466e46192adba93c29920ab131e6b" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookInstallationSuspend.php", - "hash": "64363d0f666e10d0d248819caea85004" + "hash": "f105292efbbe98e90ed2bc5899ccf235" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookInstallationTargetRenamed.php", @@ -16340,83 +16332,83 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookInstallationUnsuspend.php", - "hash": "2546c6aef1814b173ac1b658f0d98ed3" + "hash": "203dad3998d5403985daf5f55f00ceea" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated.php", - "hash": "a6f05f05e4521de51e655f31ee72b47d" + "hash": "37c53bc942e325d89b4b705c5c213a00" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted.php", - "hash": "c58a0444029ee1aa9af5dbe4f88e744e" + "hash": "a29c6be04bd61f00bb2cfe9c8e769e4d" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited.php", - "hash": "d15239ee602177f5cb7eb35d1809b442" + "hash": "406836a973318b2a546c973d1363a2a3" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesAssigned.php", - "hash": "dfd0c74e4c0f9167a778efdb3f361355" + "hash": "fd7a06e80a1fdfe0d8ddde3ccf401c76" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed.php", - "hash": "34cf32e119f6e2d1bb5676e079395238" + "hash": "388dd75be3e0d831fd204bfe3e8562b7" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted.php", - "hash": "a66aae62520ca9e2623b1433045cadad" + "hash": "64e05516a2143517dba2592a696ec600" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned.php", - "hash": "8d020a03d7d322f6ce1ebafd32b80d3f" + "hash": "3b1fe19d28785083ed7cb78a2c4e6de4" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited.php", - "hash": "6e13cbe7680ba2d8152ffc92af408ef8" + "hash": "07626fab6d2d2633cf046835a5739c92" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled.php", - "hash": "26233844757d9820733d66fe496b381e" + "hash": "6375c4eb9ed8e80a3a6b021c741ef2f1" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked.php", - "hash": "6747a63f0365dfbff6ebfcbbad9ac6df" + "hash": "8c1ab3ac8c9efcc09b1a48dbf3e1766b" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned.php", - "hash": "4a808d8dca4b0f594652bde50665b6a9" + "hash": "02db68a9e7eabde693b83a3276ccb271" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened.php", - "hash": "63ff918160061ec7a502863186b67ad1" + "hash": "c222acf603588c3ff5dfea5b69b9abe4" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesPinned.php", - "hash": "d8c5bd5d5015c247bbe46accbe822277" + "hash": "6fa6120abd412ea37a121c88f6d6727c" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened.php", - "hash": "caf918665f3c1d8a7f62a58ce305681b" + "hash": "3c8f5d24573a8ab2efc2e53caa58d4e8" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred.php", - "hash": "103ca23751ed4801e1dd985b1b28023f" + "hash": "69821380f78aa72a1b0d3d6f244d1f67" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnassigned.php", - "hash": "98bac0e09ecc11672de2094d7eb7fe78" + "hash": "06d01d9e05129677315a1dc6b45856d8" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlabeled.php", - "hash": "6fea74d4759463978f1f2aeadf8675cc" + "hash": "fbc0d6d9366efeb9f6c7a94211bfe1fc" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked.php", - "hash": "aff77cfd9e72a355defac99500d10dbc" + "hash": "4b10f81fac26abc86b65899c52622d79" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnpinned.php", - "hash": "3f384dfea5ed62b12b2b25e5a4bdab2d" + "hash": "32ffe313b33e7a13214597822b1335e3" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookLabelCreated.php", @@ -17476,7 +17468,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Event\/Payload.php", - "hash": "c51af9fd5081eccf9c421eb758180f9c" + "hash": "49e8472ee698805f8973ce373f220c9d" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Event\/Payload\/Pages.php", @@ -18652,7 +18644,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent\/Source.php", - "hash": "598a5027425b6796194ee907b13a5e80" + "hash": "d9bac30a7505c2e6e4d8a227cec71fae" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet07DCB36B\/Tiet91F472DA\/TietA9474AC9\/Tiet7F1CE862.php", @@ -22800,7 +22792,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue.php", - "hash": "4d65cb2a143c8e24bce05a9389189e8b" + "hash": "00978cb43c540001530a1eead7d78b27" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue\/PerformedViaGithubApp.php", @@ -22808,11 +22800,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted\/Issue.php", - "hash": "ff89b394b49d5d9111ceb778167f35fb" + "hash": "b25958e97cf63ac405d96ac5b8554c08" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue.php", - "hash": "dcd730ab810a0741e3d2aed71121e08e" + "hash": "e962ca199aa93485b973fef735007701" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue\/PerformedViaGithubApp.php", @@ -22820,7 +22812,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue.php", - "hash": "ea00f7ca089fded1c25b257e643feb49" + "hash": "a90998f7c1cac3d6e7b3a05e6bbb0f7d" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue\/PerformedViaGithubApp.php", @@ -22828,7 +22820,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned\/Issue.php", - "hash": "bce4bebdc3cc6339959b3305d6b9c2f2" + "hash": "0c5660699eccdcb76555991f86347bcf" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD0156E29\/Tiet718D0614\/Tiet1A091EF2\/TietD0F00D93.php", @@ -22868,7 +22860,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited\/Issue.php", - "hash": "79d47d7938839402e6486a45c945db09" + "hash": "10433c37ce96300a477625e5390ab2ed" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet7812D63D\/TietEDB87D54\/TietD5274EF4\/Tiet675CE42D.php", @@ -22884,7 +22876,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue.php", - "hash": "c79624e07b3b7906e14a65c08d0b0d76" + "hash": "7436a6abd8073119d6cdd758c5123c62" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue\/PerformedViaGithubApp.php", @@ -22892,7 +22884,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue.php", - "hash": "d16554dfaf86998f656e71adf4eb2356" + "hash": "35597b588e15041fb78901cc4c8e4869" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue\/PerformedViaGithubApp.php", @@ -22900,7 +22892,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue.php", - "hash": "af802afd33b9e45f38f3606852d31622" + "hash": "042ced331025c5615915236d1ceb51ae" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue\/PerformedViaGithubApp.php", @@ -22920,11 +22912,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Issue.php", - "hash": "8eb5a7e47a62425e96a33e0ddb576c0a" + "hash": "6e53d359d59447708b269f34d6131aba" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue.php", - "hash": "986f484c978a0b80fd5a98a3795bbad7" + "hash": "fba427f29f69f3a620d6daaa4c0f2d34" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue\/PerformedViaGithubApp.php", @@ -22932,7 +22924,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes.php", - "hash": "6f6ab9f55f17d7698f121df8c1ee444d" + "hash": "7e334a26af4fee68f40a90a50f884413" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD1D37F76\/TietFBFEB2AA\/Tiet0915167C\/Tiet4DBB1C70.php", @@ -22948,7 +22940,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked\/Issue.php", - "hash": "85a6ea9310a2bdffd46746bd7d3f68ad" + "hash": "928a71a10c3fad1db129c82bda826464" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookLabelEdited\/Changes.php", @@ -24516,7 +24508,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Apps\/CreateInstallationAccessToken\/Request\/ApplicationJson.php", - "hash": "7727b1d4f787bd703cab0bec04897366" + "hash": "193410441bc844bc738a571b319d7734" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9197E244\/TietB82917D2\/TietACD5D9B1\/Tiet79DAB836.php", @@ -24544,7 +24536,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Apps\/ScopeToken\/Request\/ApplicationJson.php", - "hash": "d24b2fbefb0c09c4f23df89ed93e5ead" + "hash": "4473c207beb9e3e34c78bace67e839f0" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/OauthAuthorizations\/CreateAuthorization\/Request\/ApplicationJson.php", @@ -25026,21 +25018,17 @@ "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Orgs\/UpdateWebhook\/Request\/ApplicationJson\/Config.php", "hash": "b6c3ae78465f6bee730fa5e080c1615d" }, - { - "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet69A6FC90\/TietEF30F65A\/Tiet9798C033\/Tiet5960D0A8.php", - "hash": "5aa6fb1c973b9d0c8f81442c9b3747ba" - }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Apps\/ListInstallationsForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", - "hash": "53e75fa7cdf3bff08e4c4ba909a904de" + "hash": "4303460ca887ec2090f6a5ae68f2ca37" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Apps\/ListInstallationsForAuthenticatedUser\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "6f6b54b759639bcba8c5b736c5d688f1" + "hash": "9e7943b0e4dd4ae516afd61ed9f0d64e" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Orgs\/ListAppInstallations\/Response\/ApplicationJson\/Ok.php", - "hash": "b4b038610eff709640e1f5238b0b860b" + "hash": "0cede66bfe018b0eaeb07960eaa9a15f" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Orgs\/SetMembershipForUser\/Request\/ApplicationJson.php", @@ -25980,7 +25968,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Issues\/Create\/Request\/ApplicationJson.php", - "hash": "1cf7d1798f3f7eb5749df663a8fd2d5a" + "hash": "335cc418a5e348ab8d9aef4140dbd513" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietC87B405D\/Tiet9B9DED8B\/Tiet852071AE\/Tiet1AF85D12.php", @@ -26012,7 +26000,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Issues\/Update\/Request\/ApplicationJson.php", - "hash": "5db94b60907e5ccb5e765595c4b7155a" + "hash": "1244e5dcd3e4cb57a5e95343282e8b0f" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Issues\/AddAssignees\/Request\/ApplicationJson.php", @@ -26248,7 +26236,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/IssuesAndPullRequests\/Response\/ApplicationJson\/Ok.php", - "hash": "bf725f2bc2c42a55eab2effe719655d5" + "hash": "0a298b22f92257af9f6c9f54c6868574" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/Labels\/Response\/ApplicationJson\/Ok.php", @@ -26452,7 +26440,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Issues.php", - "hash": "9310023911292b2ff9a361dc25993f38" + "hash": "c7bc48cbc64206b961ed067c7fa812ad" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Migrations.php", @@ -26548,7 +26536,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Issues.php", - "hash": "a02273207bbce63b7971807523fee754" + "hash": "2aef2366862555bdd23a37fa7a54c8ad" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Migrations.php", @@ -26928,7 +26916,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "373bf46b3bfb68ab68be07afe119271e" + "hash": "98d21ae0a0362abed532ed7127ce5c5c" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", @@ -26940,7 +26928,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "944582af066e6fc6c831c4e7b872a838" + "hash": "a8131aaee3ff737d431561e93a6a3270" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -26968,11 +26956,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php", - "hash": "04d7bebd979765b12c9ded734740a97c" + "hash": "eb1fd2b7b100ef0753d005fc97703337" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "acd7909d2adc36a5541ecf4184f9e6ac" + "hash": "980b73b2bfe634a1328d81fbe86232f6" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", @@ -27144,11 +27132,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "2fb5474325448bccbcb22bb7d1158ea1" + "hash": "32ae5397ae138ad50e6ed2a47a592ff1" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "54beea339c8099994a522e19c9c55b8c" + "hash": "2d628ae5ac22cca728c77ea34231ae9a" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -27220,7 +27208,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Issues.php", - "hash": "35c64af07212fd2867cedbad7f520cbc" + "hash": "8a3c4c0e40ac43e8cad7a6b7fc0b091c" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Licenses.php", @@ -27232,7 +27220,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "fdb089e69f0607eca3dd0187286efd36" + "hash": "1d66932ed1d9c617a0396fbd06a68ba6" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Oidc.php", @@ -29008,7 +28996,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues.php", - "hash": "ff1bd1ecd0102c1d64bbe41864a6c9c9" + "hash": "1e9ad159342db1e3868d620545058d08" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Comments.php", @@ -29028,15 +29016,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Events\/EventId.php", - "hash": "7b1d435e3668f7cced155f79259ec9e0" + "hash": "e7a6d351d5136253562c67155f2c353a" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber.php", - "hash": "b7487d601cb38282e01602761101a1b3" + "hash": "8c529fc8eaac852f8397188f3dfecf8f" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees.php", - "hash": "d5f6216104039e5a797e17b5e92c9f90" + "hash": "af895e48601377cdd2cd5a9abf1277eb" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees\/Assignee.php", @@ -29756,11 +29744,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/IssueComment.php", - "hash": "5e7b8a2ba3da905fd46f816850382ebf" + "hash": "ae22bb3da79cecbe6f15afa04242cb3d" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Issues.php", - "hash": "17c4f61ea75cd9a6af77c54c07762afb" + "hash": "6da541658e89ae27671c06c9cea06cba" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Label.php", @@ -29928,7 +29916,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "40b94097301d86c35ca24c5d98fc181e" + "hash": "5cc324935d025623be0806c11e4ca0e2" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php", @@ -29973,6 +29961,22 @@ { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietE8D41C9A\/Tiet1255E585\/Tiet44FA9DEE\/Tiet93E2B36C.php", "hash": "89f95f050fae650bab31b0847d250e79" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/IssueType.php", + "hash": "f538d37ed24199a88e8ee00d62992fa5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietCEC00D30\/TietBA28F41C\/TietED3399C3\/Tiet77E9229F.php", + "hash": "dc2f85ce44f4f25d87eb52adaba6e52d" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet0968406E\/Tiet2C952CDE\/TietED85F629\/Tiet3738A272.php", + "hash": "b0f9bf1bfafc567de325a8ffb972e266" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietA6754E69\/Tiet89E7A5A9\/Tiet4D165B48\/TietE1DB3DED.php", + "hash": "bbf8a1fe3747ff9a86eb0438cffe7185" } ] }, diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php index 041599abfb0..11720f55092 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php index 33a4c52ae50..6f99b9dea13 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php index 0b76d46ff8d..4019e205d18 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php index 35a3d1d6ac1..0468b83df3e 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Hydrator/WebHook/IssueComment.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/IssueComment.php index 291cd575050..224d1854411 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/IssueComment.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Hydrator/WebHook/Issues.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/Issues.php index c31f6beca88..5654394c5f4 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/Issues.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Hydrators.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrators.php index b9cdddbd1ee..7cb5b4636b0 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrators.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrators.php @@ -901,7 +901,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), @@ -1243,7 +1243,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.13/src/Internal/Operation/Issues/ListForOrg.php b/clients/GitHubEnterprise-3.13/src/Internal/Operation/Issues/ListForOrg.php index c141a223c23..da0fcf4894d 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operation/Issues/ListForOrg.php +++ b/clients/GitHubEnterprise-3.13/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.13/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.13/src/Internal/Operation/Issues/ListForOrgListing.php b/clients/GitHubEnterprise-3.13/src/Internal/Operation/Issues/ListForOrgListing.php index af0bcaa038a..803f87eda4d 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operation/Issues/ListForOrgListing.php +++ b/clients/GitHubEnterprise-3.13/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.13/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.13/src/Internal/Operation/Issues/ListForRepo.php b/clients/GitHubEnterprise-3.13/src/Internal/Operation/Issues/ListForRepo.php index 38249b28abf..68a4aabf743 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operation/Issues/ListForRepo.php +++ b/clients/GitHubEnterprise-3.13/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.13/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.13/src/Internal/Operation/Issues/ListForRepoListing.php b/clients/GitHubEnterprise-3.13/src/Internal/Operation/Issues/ListForRepoListing.php index a3f83edda9a..cbc7822f5e2 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operation/Issues/ListForRepoListing.php +++ b/clients/GitHubEnterprise-3.13/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.13/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.13/src/Internal/Operator/Issues/ListForOrg.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Issues/ListForOrg.php index 697b2dbed05..a23731bbbd9 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Issues/ListForOrg.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Operator/Issues/ListForOrgListing.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Issues/ListForOrgListing.php index 96fcfb84f2d..dffd8fdc5da 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Issues/ListForOrgListing.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Operator/Issues/ListForRepo.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Issues/ListForRepo.php index 7d2ddcecdc3..4f490ff95c1 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Issues/ListForRepo.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Operator/Issues/ListForRepoListing.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/Issues/ListForRepoListing.php index 96ec3b5fd98..2f959004c73 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/Issues/ListForRepoListing.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Router/Get/Five.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Five.php index 71ce8678ba0..232f2cbfbc4 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Five.php @@ -50,7 +50,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|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.13/src/Internal/Router/Get/Four.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Four.php index edf2c3efe38..aa7b5605691 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Four.php +++ b/clients/GitHubEnterprise-3.13/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 */ + /** @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 */ 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|ProjectColumn|FullRepository|BasicError|ConfigurationStatus|MaintenanceStatus|EnterpriseSettings|GpgKey|Key|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Issues.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Issues.php index d2fcd383c7a..7dc7caf77d5 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Issues.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Router/List/Five.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Five.php index dda11c9dc13..e9c10a87549 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Five.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Router/List/Four.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Four.php index 8306a8a22ae..af812b45976 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Four.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Internal/Router/List/Issues.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Issues.php index 48d07f4e246..0630df4c273 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/List/Issues.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Operation/Issues.php b/clients/GitHubEnterprise-3.13/src/Operation/Issues.php index 1cfadb816d3..32a12585a1b 100644 --- a/clients/GitHubEnterprise-3.13/src/Operation/Issues.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php index e42785fc5cb..ff8436de75f 100644 --- a/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.13/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') { @@ -3000,11 +3000,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.13/src/Schema/AliasAbstract/Tiet00E2CDA3/Tiet26B4E118/Tiet38BE18FB/TietDD47E726.php b/clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/Tiet0968406E/Tiet2C952CDE/TietED85F629/Tiet3738A272.php similarity index 95% rename from clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/Tiet00E2CDA3/Tiet26B4E118/Tiet38BE18FB/TietDD47E726.php rename to clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/Tiet0968406E/Tiet2C952CDE/TietED85F629/Tiet3738A272.php index 6f498a1fbfa..0406eb00b44 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/Tiet00E2CDA3/Tiet26B4E118/Tiet38BE18FB/TietDD47E726.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/Tiet0968406E/Tiet2C952CDE/TietED85F629/Tiet3738A272.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet00E2CDA3\Tiet26B4E118\Tiet38BE18FB; +namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet0968406E\Tiet2C952CDE\TietED85F629; use ApiClients\Client\GitHubEnterprise\Schema; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class TietDD47E726 +abstract readonly class Tiet3738A272 { 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.13/src/Schema/AliasAbstract/Tiet69A6FC90/TietEF30F65A/Tiet9798C033/Tiet5960D0A8.php b/clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/TietA6754E69/Tiet89E7A5A9/Tiet4D165B48/TietE1DB3DED.php similarity index 99% rename from clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/Tiet69A6FC90/TietEF30F65A/Tiet9798C033/Tiet5960D0A8.php rename to clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/TietA6754E69/Tiet89E7A5A9/Tiet4D165B48/TietE1DB3DED.php index d0a8f2af972..e7bade9b28f 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/Tiet69A6FC90/TietEF30F65A/Tiet9798C033/Tiet5960D0A8.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/AliasAbstract/TietD5D8BF6F/Tiet88C78164/Tiet9DC080A7/Tiet0FC70C0C.php b/clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/TietCEC00D30/TietBA28F41C/TietED3399C3/Tiet77E9229F.php similarity index 95% rename from clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/TietD5D8BF6F/Tiet88C78164/Tiet9DC080A7/Tiet0FC70C0C.php rename to clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/TietCEC00D30/TietBA28F41C/TietED3399C3/Tiet77E9229F.php index 057ffd9c433..00ab83a29ac 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/TietD5D8BF6F/Tiet88C78164/Tiet9DC080A7/Tiet0FC70C0C.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/AliasAbstract/TietCEC00D30/TietBA28F41C/TietED3399C3/Tiet77E9229F.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\TietD5D8BF6F\Tiet88C78164\Tiet9DC080A7; +namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\TietCEC00D30\TietBA28F41C\TietED3399C3; use ApiClients\Client\GitHubEnterprise\Schema; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet0FC70C0C +abstract readonly class Tiet77E9229F { 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.13/src/Schema/AppPermissions.php b/clients/GitHubEnterprise-3.13/src/Schema/AppPermissions.php index 65e9b726c5f..feaa8c63a13 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/AppPermissions.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php b/clients/GitHubEnterprise-3.13/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php index 64b4d8d16e8..e18868d9f0f 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php b/clients/GitHubEnterprise-3.13/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php index 6d2ad239fa1..8565d0e202f 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/Authorization.php b/clients/GitHubEnterprise-3.13/src/Schema/Authorization.php index 6a181d70eee..cb4c1bbeda4 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Authorization.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/CustomPropertySetPayload.php b/clients/GitHubEnterprise-3.13/src/Schema/CustomPropertySetPayload.php index a56f09b61f9..b59f70df804 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/CustomPropertySetPayload.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/Event.php b/clients/GitHubEnterprise-3.13/src/Schema/Event.php index cceb55964bd..dad3ee6c431 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Event.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/Event/Payload.php b/clients/GitHubEnterprise-3.13/src/Schema/Event/Payload.php index 941479f09fb..fa4099ac41d 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Event/Payload.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/Installation.php b/clients/GitHubEnterprise-3.13/src/Schema/Installation.php index deb9bea0ff1..056eb70a1a6 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Installation.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/InstallationToken.php b/clients/GitHubEnterprise-3.13/src/Schema/InstallationToken.php index 26e52b0dca8..0982809f31a 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/InstallationToken.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/Issue.php b/clients/GitHubEnterprise-3.13/src/Schema/Issue.php index 248fcf0880f..8f0b3f9446f 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/Issue.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/IssueEvent.php b/clients/GitHubEnterprise-3.13/src/Schema/IssueEvent.php index 729d08a2bcf..dfefbe80573 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/IssueEvent.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/IssueSearchResultItem.php b/clients/GitHubEnterprise-3.13/src/Schema/IssueSearchResultItem.php index efa67c436e4..9b46aa2b303 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/IssueSearchResultItem.php +++ b/clients/GitHubEnterprise-3.13/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.13/src/Schema/IssueType.php b/clients/GitHubEnterprise-3.13/src/Schema/IssueType.php new file mode 100644 index 00000000000..6b4644c2c53 --- /dev/null +++ b/clients/GitHubEnterprise-3.13/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.13/tests/Internal/Operation/Issues/ListForOrgTest.php b/clients/GitHubEnterprise-3.13/tests/Internal/Operation/Issues/ListForOrgTest.php index be0c1fb74d0..5e10604d3af 100644 --- a/clients/GitHubEnterprise-3.13/tests/Internal/Operation/Issues/ListForOrgTest.php +++ b/clients/GitHubEnterprise-3.13/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.13/tests/Internal/Operation/Issues/ListForRepoListingTest.php b/clients/GitHubEnterprise-3.13/tests/Internal/Operation/Issues/ListForRepoListingTest.php index e19accc110e..56f169cb5ee 100644 --- a/clients/GitHubEnterprise-3.13/tests/Internal/Operation/Issues/ListForRepoListingTest.php +++ b/clients/GitHubEnterprise-3.13/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.13/tests/Internal/Operation/Issues/ListForRepoTest.php b/clients/GitHubEnterprise-3.13/tests/Internal/Operation/Issues/ListForRepoTest.php index 9e137316ac7..ca876b13ddc 100644 --- a/clients/GitHubEnterprise-3.13/tests/Internal/Operation/Issues/ListForRepoTest.php +++ b/clients/GitHubEnterprise-3.13/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.13/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.13/tests/Types/ClientCallReturnTypes.php index e5157d7a68e..2470ada6fc8 100644 --- a/clients/GitHubEnterprise-3.13/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.13/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}')); @@ -756,8 +756,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.13/current.spec.yaml b/etc/specs/GitHubEnterprise-3.13/current.spec.yaml index a5330244c7e..7e3d393d89e 100644 --- a/etc/specs/GitHubEnterprise-3.13/current.spec.yaml +++ b/etc/specs/GitHubEnterprise-3.13/current.spec.yaml @@ -12672,6 +12672,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 @@ -14512,6 +14518,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. @@ -31499,6 +31509,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 @@ -31639,6 +31657,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: @@ -32248,6 +32273,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: @@ -65914,7 +65947,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 @@ -70093,6 +70126,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 @@ -70342,6 +70427,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" repository: "$ref": "#/components/schemas/repository" performed_via_github_app: @@ -74325,6 +74412,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: @@ -87891,6 +87989,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" performed_via_github_app: anyOf: - type: 'null' @@ -92792,6 +92892,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -93872,6 +93974,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -111109,6 +111213,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -112320,6 +112426,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -113538,6 +113646,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -114781,6 +114891,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -115883,6 +115995,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -116866,6 +116980,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -117828,6 +117944,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" title: description: Title of the issue type: string @@ -118795,6 +118913,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" title: description: Title of the issue type: string @@ -119786,6 +119906,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" title: description: Title of the issue type: string @@ -120749,6 +120871,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -123113,6 +123237,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -124204,6 +124330,8 @@ components: format: uri user_view_type: type: string + type: + "$ref": "#/components/schemas/issue-type" organization: "$ref": "#/components/schemas/organization-simple-webhooks" repository: @@ -125062,6 +125190,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -126590,6 +126720,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time